fix missing variable

This commit is contained in:
nahuhh 2024-02-24 11:24:07 -05:00
parent f7b0eb217a
commit 89659624a9
3 changed files with 6 additions and 5 deletions

View file

@ -17,11 +17,11 @@ if [ $addcoin = bitcoin ]; then
if [ $confirmed = yes ]; then
echo "Using btcfastsync"
basicswap-prepare --usebtcfastsync --datadir=/$SWAP_DATADIR --addcoin=$addcoin
basicswap-prepare --usebtcfastsync --datadir=$SWAP_DATADIR --addcoin=$addcoin
else
echo "Not using btcfastsync"
basicswap-prepare --datadir=/$SWAP_DATADIR --addcoin=$addcoin
basicswap-prepare --datadir=$SWAP_DATADIR --addcoin=$addcoin
fi
else
basicswap-prepare --datadir=/$SWAP_DATADIR --addcoin=$addcoin
basicswap-prepare --datadir=$SWAP_DATADIR --addcoin=$addcoin
fi

View file

@ -42,7 +42,7 @@ if [[ "$monerod_addr" && "$particl_mnemonic" ]]; 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
$red"\n\nMake note of your seed above\n"; $nocolor
elif [[ "particl_mnemonic" ]]; then
elif [[ "$particl_mnemonic" ]]; then
PARTICL_MNEMONIC=$particl_mnemonic
basicswap-prepare --datadir=$SWAP_DATADIR --particl_mnemonic="$PARTICL_MNEMONIC"
else

View file

@ -82,12 +82,13 @@ read -p 'Select an option [1|2]: ' l
done
## Begin Install
echo -e "\n\nShall we begin?"
echo -e "\n\nInstalling dependencies"
read -p 'Press Enter to continue, or CTRL-C to exit.'
## Update & Install dependencies
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
# 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*
## Make venv and set variables for install
export SWAP_DATADIR=$HOME/coinswaps