CHOICE=$(dialog --backtitle "RaspiBlitz" --clear --title "RECOVER LND DATA & WALLET" --menu "Data you have to recover from?"11606"${OPTIONS[@]}" 2>&1 >/dev/tty)
dialog --backtitle "RaspiBlitz - LND Recover" --inputbox "Please enter/paste the SEED WORD LIST:\n(just the words, seperated by commas, in correct order as numbered)"978 2>/home/admin/.seed.tmp
@ -214,28 +213,36 @@ if [ ${walletExists} -eq 0 ]; then
shred /home/admin/.seed.tmp
echo"processing ... ${wordstring}"
# string to array
# check correct number of words
IFS=','read -r -a seedArray <<<"$wordstring"
# check array
echo"numWords(${#seedArray[@]})"
if[${#seedArray[@]} -eq 24];then
echo"OK - 24 words"
exit1
else
echo"wrong number of words"
wordstring=""
whiptail --title " WARNING " --msgbox "
The word list has ${#seedArray[@]} words. But it must be 24.