Browse Source

fixed error messages

#146
rootzoll 6 years ago
parent
commit
290621b245
  1. 10
      home.admin/20initDialog.sh

10
home.admin/20initDialog.sh

@ -50,24 +50,22 @@ Write them down & store them in a safe place.
passwordValid=1 passwordValid=1
clearedResult=$(echo '${result}' | tr -dc '[:alnum:]-.') clearedResult=$(echo '${result}' | tr -dc '[:alnum:]-.')
echo "(${clearedResult}) (${#clearedResult} )" #echo "(${clearedResult}) (${#clearedResult} )"
echo "(${result}) (${#result})" #echo "(${result}) (${#result})"
if [ ${#clearedResult} != ${#result} ]; then if [ ${#clearedResult} != ${#result} ]; then
clear clear
echo "FAIL - Password contained not allowed chars" echo "FAIL - Password contained not allowed chars"
echo "Press ENTER to continue .." echo "Press ENTER to continue .."
ready key read key
passwordValid=0 passwordValid=0
fi fi
exit 1
# check input (check for more later) # check input (check for more later)
if [ ${#result} -eq 0 ]; then if [ ${#result} -eq 0 ]; then
clear clear
echo "FAIL - Password cannot be empty" echo "FAIL - Password cannot be empty"
echo "Press ENTER to continue .." echo "Press ENTER to continue .."
ready key read key
passwordValid=0 passwordValid=0
fi fi

Loading…
Cancel
Save