mirror of
https://github.com/nahuhh/basicswap-bash.git
synced 2025-01-05 10:29:31 +00:00
fix missing variable
This commit is contained in:
parent
f7b0eb217a
commit
89659624a9
3 changed files with 6 additions and 5 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
|
||||||
|
|
|
@ -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