mirror of
https://github.com/nahuhh/basicswap-bash.git
synced 2024-12-22 11:39:21 +00:00
add curl dependency, reword password prompt
This commit is contained in:
parent
07cc24b204
commit
116a5a68c7
6 changed files with 11 additions and 10 deletions
|
@ -5,7 +5,7 @@ red="echo -e -n \e[31;1m"
|
|||
green="echo -e -n \e[32;1m"
|
||||
nocolor="echo -e -n \e[0m"
|
||||
|
||||
echo -e "My BasicSwapDEX is:\n[1] Password protected\n[2] NOT password protected\n"
|
||||
echo -e "BasicSwapDEX is currently:\n[1] Password protected\n[2] NOT password protected\n"
|
||||
until [[ "$l" =~ ^[12]$ ]]; do
|
||||
read -p 'Select an option [1|2]: ' l
|
||||
case $l in
|
||||
|
|
|
@ -5,7 +5,7 @@ red="echo -e -n \e[31;1m"
|
|||
green="echo -e -n \e[32;1m"
|
||||
nocolor="echo -e -n \e[0m"
|
||||
|
||||
echo -e "My BasicSwapDEX is:\n[1] Password protected\n[2] NOT password protected\n"
|
||||
echo -e "BasicSwapDEX is currently:\n[1] Password protected\n[2] NOT password protected\n"
|
||||
until [[ "$l" =~ ^[12]$ ]]; do
|
||||
read -p 'Select an option [1|2]: ' l
|
||||
case $l in
|
||||
|
|
|
@ -5,7 +5,7 @@ red="echo -e -n \e[31;1m"
|
|||
green="echo -e -n \e[32;1m"
|
||||
nocolor="echo -e -n \e[0m"
|
||||
|
||||
echo -e "My BasicSwapDEX is:\n[1] Password protected\n[2] NOT password protected\n"
|
||||
echo -e "BasicSwapDEX is currently:\n[1] Password protected\n[2] NOT password protected\n"
|
||||
until [[ "$l" =~ ^[12]$ ]]; do
|
||||
read -p 'Select an option [1|2]: ' l
|
||||
case $l in
|
||||
|
|
|
@ -5,7 +5,7 @@ red="echo -e -n \e[31;1m"
|
|||
green="echo -e -n \e[32;1m"
|
||||
nocolor="echo -e -n \e[0m"
|
||||
|
||||
echo -e "My BasicSwapDEX is:\n[1] Password protected\n[2] NOT password protected\n"
|
||||
echo -e "BasicSwapDEX is currently:\n[1] Password protected\n[2] NOT password protected\n"
|
||||
until [[ "$l" =~ ^[12]$ ]]; do
|
||||
read -p 'Select an option [1|2]: ' l
|
||||
case $l in
|
||||
|
|
|
@ -5,7 +5,7 @@ red="echo -e -n \e[31;1m"
|
|||
green="echo -e -n \e[32;1m"
|
||||
nocolor="echo -e -n \e[0m"
|
||||
|
||||
echo -e "My BasicSwapDEX is:\n[1] Password protected\n[2] NOT password protected\n"
|
||||
echo -e "BasicSwapDEX is currently:\n[1] Password protected\n[2] NOT password protected\n"
|
||||
until [[ "$l" =~ ^[12]$ ]]; do
|
||||
read -p 'Select an option [1|2]: ' l
|
||||
case $l in
|
||||
|
|
11
install.sh
11
install.sh
|
@ -63,6 +63,12 @@ detect_os_arch() {
|
|||
|
||||
detect_os_arch
|
||||
|
||||
## Update & Install dependencies
|
||||
echo -e "\n\nInstalling dependencies\nPress CTRL-C at password prompt(s) to skip. If skipped, you must install the dependencies manually before proceeding"
|
||||
$green"$UPDATE\n$INSTALL $DEPENDENCY git curl wget unzip automake libtool jq\n"; $nocolor
|
||||
$UPDATE
|
||||
$INSTALL $DEPENDENCY git curl wget unzip automake libtool jq
|
||||
|
||||
# Enable tor
|
||||
echo -e "\n\n[1] Tor ON (requires sudo)\n[2] Tor OFF\n"
|
||||
until [[ "$tor_on" =~ ^[12]$ ]]; do
|
||||
|
@ -155,11 +161,6 @@ done
|
|||
## Begin Install
|
||||
echo -e "\n\nInstalling BasicSwapDEX"
|
||||
read -p 'Press Enter to continue, or CTRL-C to exit.'
|
||||
## Update & Install dependencies
|
||||
echo -e "\n\nInstalling dependencies\nPress CTRL-C at password prompt(s) to skip. If skipped, you must install the dependencies manually before proceeding"
|
||||
$green"$UPDATE\n$INSTALL $DEPENDENCY git wget unzip automake libtool jq\n"; $nocolor
|
||||
$UPDATE
|
||||
$INSTALL $DEPENDENCY git wget unzip automake libtool jq
|
||||
|
||||
# Quest to make trasher happy
|
||||
trasherdk=$(echo $PATH | grep $USER/.local/bin)
|
||||
|
|
Loading…
Reference in a new issue