mirror of
https://github.com/nahuhh/basicswap-bash.git
synced 2025-05-07 21:32:18 +00:00
removecoin: doesnt require password
This commit is contained in:
parent
6dcc56664f
commit
61727fb991
1 changed files with 0 additions and 24 deletions
|
@ -21,30 +21,6 @@ if [[ -f $SWAP_DATADIR/particl/particl.pid ]]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "BasicSwapDEX is currently:\n[1] Password protected\n[2] NOT password protected\n\n"
|
|
||||||
until [[ "$l" =~ ^[12]$ ]]; do
|
|
||||||
read -p 'Select an option [1|2]: ' l
|
|
||||||
case $l in
|
|
||||||
1)
|
|
||||||
until [[ $pass1 ]] && [[ $pass1 == $pass2 ]]; do
|
|
||||||
read -sp 'Enter your BasicSwap password: ' pass1
|
|
||||||
read -sp $'\nRe-enter your BasicSwap password: ' pass2
|
|
||||||
if [[ $pass1 == $pass2 ]]; then
|
|
||||||
export WALLET_ENCRYPTION_PWD=$pass1
|
|
||||||
else
|
|
||||||
$red"\nThe passwords entered don't match. Try again\n\n"; $nocolor
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
;;
|
|
||||||
2)
|
|
||||||
$nocolor"\nProceeding without a password\n"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
$red"You must answer 1 or 2\n"; $nocolor
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
export disablecoin="$1"
|
export disablecoin="$1"
|
||||||
. $SWAP_DATADIR/venv/bin/activate
|
. $SWAP_DATADIR/venv/bin/activate
|
||||||
$HOME/.local/bin/bsx/removecoin.sh
|
$HOME/.local/bin/bsx/removecoin.sh
|
||||||
|
|
Loading…
Reference in a new issue