mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 14:51:03 +01:00
correct wordcount
This commit is contained in:
parent
b457f7e0a3
commit
3134fc6567
1 changed files with 3 additions and 3 deletions
|
@ -281,8 +281,8 @@ or having a complete LND rescue-backup from your old node.
|
|||
echo "processing ... ${wordstring}"
|
||||
|
||||
# check correct number of words
|
||||
IFS=' ' read -r -a seedArray <<< "$wordstring"
|
||||
if [ ${#seedArray[@]} -eq 24 ]; then
|
||||
wordcount=$(echo "${wordstring}" | wc -w)
|
||||
if [ ${wordcount} -eq 24 ]; then
|
||||
echo "OK - 24 words"
|
||||
wordsCorrect=1
|
||||
else
|
||||
|
@ -290,7 +290,7 @@ or having a complete LND rescue-backup from your old node.
|
|||
--yes-button "Try Again" \
|
||||
--no-button "Cancel" \
|
||||
--yesno "
|
||||
The word list has ${#seedArray[@]} words. But it must be 24.
|
||||
The word list has ${wordcount} words. But it must be 24.
|
||||
Please check your list and try again.
|
||||
|
||||
Best is to write words in external editor
|
||||
|
|
Loading…
Add table
Reference in a new issue