|
|
@ -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 |
|
|
|
|
|
|
|