mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
test
This commit is contained in:
parent
817add4965
commit
55d051b5d2
1 changed files with 10 additions and 10 deletions
|
@ -216,20 +216,20 @@ if [ ${walletExists} -eq 0 ]; then
|
|||
#echo "processing ..."
|
||||
|
||||
# remove spaces
|
||||
wordstring=$(echo "${wordstring}" | sed 's/[^a-zA-Z0-9 ]//g')
|
||||
#wordstring=$(echo "${wordstring}" | sed 's/[^a-zA-Z0-9 ]//g')
|
||||
|
||||
# string to array
|
||||
IFS=',' read -r -a seedArray <<< "$wordstring"
|
||||
#IFS=',' read -r -a seedArray <<< "$wordstring"
|
||||
|
||||
# check array
|
||||
if [ ${#seedArray[@]} -eq 24 ]; then
|
||||
echo "OK - 24 words"
|
||||
exit 1
|
||||
else
|
||||
echo "wrong number of words"
|
||||
wordstring=""
|
||||
exit 1
|
||||
fi
|
||||
#if [ ${#seedArray[@]} -eq 24 ]; then
|
||||
# echo "OK - 24 words"
|
||||
# exit 1
|
||||
#else
|
||||
# echo "wrong number of words"
|
||||
# wordstring=""
|
||||
# exit 1
|
||||
#fi
|
||||
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue