joininbox/scripts/menu.freeze.sh
2021-03-04 14:10:10 +00:00

28 lines
628 B
Bash
Executable file

#!/bin/bash
source /home/joinmarket/joinin.conf
source /home/joinmarket/_functions.sh
chooseWallet
# get mixdepth
mixdepth=$(mktemp -p /dev/shm/)
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") \
$(sed "s#$walletPath##g" < "$wallet") freeze
"
# run
$tor python ~/joinmarket-clientserver/scripts/wallet-tool.py \
-m"$(cat "$mixdepth")" "$(cat "$wallet")" freeze