mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-01 00:18:10 +02:00
fixed error messages
This commit is contained in:
parent
e951efc42b
commit
290621b245
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user