Browse Source

split words

master
Christian Rotzoll 6 years ago
parent
commit
e84910ddf9
  1. 20
      home.admin/70initLND.sh

20
home.admin/70initLND.sh

@ -215,20 +215,20 @@ if [ ${walletExists} -eq 0 ]; then
echo "processing ... ${wordstring}" echo "processing ... ${wordstring}"
# remove spaces # 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 # string to array
#IFS=',' read -r -a seedArray <<< "$wordstring" IFS=',' read -r -a seedArray <<< "$wordstring"
# check array # check array
#if [ ${#seedArray[@]} -eq 24 ]; then if [ ${#seedArray[@]} -eq 24 ]; then
# echo "OK - 24 words" echo "OK - 24 words"
# exit 1 exit 1
#else else
# echo "wrong number of words" echo "wrong number of words"
# wordstring="" wordstring=""
# exit 1 exit 1
#fi fi
fi fi

Loading…
Cancel
Save