joininbox/scripts/menu.freeze.sh
2020-07-16 13:03:31 +01:00

28 lines
629 B
Bash
Executable file

#!/bin/bash
source /home/joinmarket/joinin.conf
source /home/joinmarket/menu.functions.sh
chooseWallet
# get mixdepth
mixdepth=$(tempfile 2>/dev/null)
dialog --backtitle "Choose a mixdepth" \
--inputbox "Enter a number between 0 to 4 to choose the mixdepth" 8 60 2> $mixdepth
openMenuIfCancelled $?
if [ ${RPCoverTor} = "on" ]; then
tor="torify"
else
tor=""
fi
clear
# display
echo "Running the command:
$tor python wallet-tool.py -m$(cat $mixdepth) \
$(echo $(cat $wallet) | sed "s#$walletPath##g") freeze
"
# run
$tor python ~/joinmarket-clientserver/scripts/wallet-tool.py \
-m$(cat $mixdepth) $(cat $wallet) freeze