mirror of
https://github.com/nahuhh/basicswap-bash.git
synced 2024-11-16 15:57:38 +00:00
fix missing variable
This commit is contained in:
parent
f7b0eb217a
commit
84b40e93ce
4 changed files with 8 additions and 7 deletions
|
@ -17,11 +17,11 @@ if [ $addcoin = bitcoin ]; then
|
||||||
|
|
||||||
if [ $confirmed = yes ]; then
|
if [ $confirmed = yes ]; then
|
||||||
echo "Using btcfastsync"
|
echo "Using btcfastsync"
|
||||||
basicswap-prepare --usebtcfastsync --datadir=/$SWAP_DATADIR --addcoin=$addcoin
|
basicswap-prepare --usebtcfastsync --datadir=$SWAP_DATADIR --addcoin=$addcoin
|
||||||
else
|
else
|
||||||
echo "Not using btcfastsync"
|
echo "Not using btcfastsync"
|
||||||
basicswap-prepare --datadir=/$SWAP_DATADIR --addcoin=$addcoin
|
basicswap-prepare --datadir=$SWAP_DATADIR --addcoin=$addcoin
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
basicswap-prepare --datadir=/$SWAP_DATADIR --addcoin=$addcoin
|
basicswap-prepare --datadir=$SWAP_DATADIR --addcoin=$addcoin
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
## Prompt for user input
|
## Prompt for user input
|
||||||
echo -e "\n\nThe following coins can be disabled (case sensitive)\nbitcoin\ndash\nfiro\nlitecoin\nparticl\nPIVX\n"
|
echo -e "\n\nThe following coins can be disabled (case sensitive)\nbitcoin\ndash\nfiro\nlitecoin\nmonero\npivx\n"
|
||||||
read -p 'Full name of coin to disable [example: litecoin] ' disablecoin
|
read -p 'Full name of coin to disable [example: litecoin] ' disablecoin
|
||||||
## Confirm
|
## Confirm
|
||||||
echo -e "\nDisable $disablecoin on your BasicSwap install, correct? Press any key to continue. CTRL-C to exit"
|
echo -e "\nDisable $disablecoin on your BasicSwap install, correct? Press any key to continue. CTRL-C to exit"
|
||||||
read
|
read
|
||||||
## Disable the coin
|
## Disable the coin
|
||||||
basicswap-prepare --datadir=/$SWAP_DATADIR --disablecoin=$disablecoin
|
basicswap-prepare --datadir=$SWAP_DATADIR --disablecoin=$disablecoin
|
||||||
|
|
|
@ -42,7 +42,7 @@ if [[ "$monerod_addr" && "$particl_mnemonic" ]]; then
|
||||||
elif [[ "$monerod_addr" ]]; then
|
elif [[ "$monerod_addr" ]]; then
|
||||||
XMR_RPC_HOST=$monerod_addr BASE_XMR_RPC_PORT=$monerod_port basicswap-prepare --datadir=$SWAP_DATADIR --withcoins=monero --xmrrestoreheight=$CURRENT_XMR_HEIGHT
|
XMR_RPC_HOST=$monerod_addr BASE_XMR_RPC_PORT=$monerod_port basicswap-prepare --datadir=$SWAP_DATADIR --withcoins=monero --xmrrestoreheight=$CURRENT_XMR_HEIGHT
|
||||||
$red"\n\nMake note of your seed above\n"; $nocolor
|
$red"\n\nMake note of your seed above\n"; $nocolor
|
||||||
elif [[ "particl_mnemonic" ]]; then
|
elif [[ "$particl_mnemonic" ]]; then
|
||||||
PARTICL_MNEMONIC=$particl_mnemonic
|
PARTICL_MNEMONIC=$particl_mnemonic
|
||||||
basicswap-prepare --datadir=$SWAP_DATADIR --particl_mnemonic="$PARTICL_MNEMONIC"
|
basicswap-prepare --datadir=$SWAP_DATADIR --particl_mnemonic="$PARTICL_MNEMONIC"
|
||||||
else
|
else
|
||||||
|
|
|
@ -82,12 +82,13 @@ read -p 'Select an option [1|2]: ' l
|
||||||
done
|
done
|
||||||
|
|
||||||
## Begin Install
|
## Begin Install
|
||||||
echo -e "\n\nShall we begin?"
|
echo -e "\n\nInstalling dependencies"
|
||||||
read -p 'Press Enter to continue, or CTRL-C to exit.'
|
read -p 'Press Enter to continue, or CTRL-C to exit.'
|
||||||
## Update & Install dependencies
|
## Update & Install dependencies
|
||||||
sudo apt update # python-is-python3 for ubuntu
|
sudo apt update # python-is-python3 for ubuntu
|
||||||
sudo apt install -y git wget python-is-python3 python3-venv python3-pip gnupg unzip protobuf-compiler automake libtool pkg-config curl jq
|
sudo apt install -y git wget python-is-python3 python3-venv python3-pip gnupg unzip protobuf-compiler automake libtool pkg-config curl jq
|
||||||
# Move scripts to /usr/local/bin
|
# Move scripts to /usr/local/bin
|
||||||
|
sudo rm -r /usr/local/bin/bsx* /usr/local/bin/basicswap-bash
|
||||||
sudo mv -f -t /usr/local/bin/ basicswap-bash bsx*
|
sudo mv -f -t /usr/local/bin/ basicswap-bash bsx*
|
||||||
## Make venv and set variables for install
|
## Make venv and set variables for install
|
||||||
export SWAP_DATADIR=$HOME/coinswaps
|
export SWAP_DATADIR=$HOME/coinswaps
|
||||||
|
|
Loading…
Reference in a new issue