fixed error messages

This commit is contained in:
rootzoll 2018-11-28 12:51:16 +01:00
parent e951efc42b
commit 290621b245

View File

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