mirror of
https://github.com/nahuhh/basicswap-bash.git
synced 2025-03-31 03:29:02 +00:00
addcoin: small cleanup
This commit is contained in:
parent
175b55fbe3
commit
82d495b12d
1 changed files with 3 additions and 4 deletions
|
@ -10,6 +10,7 @@ fi
|
|||
read -p $'\nAdd '$addcoin' to your BasicSwap install, correct? Press ENTER to continue. CTRL-C to exit'
|
||||
|
||||
## Add the coin
|
||||
fastsync=""
|
||||
if [ $addcoin = bitcoin ]; then
|
||||
read -p 'Use --usebtcfastsync for bitcoin? [Y/n] ' btcfastsync
|
||||
|
||||
|
@ -20,11 +21,9 @@ if [ $addcoin = bitcoin ]; then
|
|||
|
||||
if [ $confirmed = yes ]; then
|
||||
echo "Using btcfastsync"
|
||||
basicswap-prepare --usebtcfastsync --datadir=$SWAP_DATADIR --addcoin=$addcoin
|
||||
fastsync="--usebtcfastsync"
|
||||
else
|
||||
echo "Not using btcfastsync"
|
||||
basicswap-prepare --datadir=$SWAP_DATADIR --addcoin=$addcoin
|
||||
fi
|
||||
else
|
||||
basicswap-prepare --datadir=$SWAP_DATADIR --addcoin=$addcoin
|
||||
fi
|
||||
basicswap-prepare --datadir=$SWAP_DATADIR --addcoin=$addcoin "${fastsync:+${fastsync}}"
|
||||
|
|
Loading…
Reference in a new issue