mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-02 12:12:51 +02:00
added missing space
This commit is contained in:
@@ -50,13 +50,13 @@ Write them down & store them in a safe place.
|
||||
passwordValid=1
|
||||
|
||||
clearedResult=$(echo "${result}" | tr -dc '[:alnum:]-.' | tr -d ' ')
|
||||
if [ ${#clearedResult} != ${#result} ] || [ ${#clearedResult} -eq 0]; then
|
||||
if [ ${#clearedResult} != ${#result} ] || [ ${#clearedResult} -eq 0 ]; then
|
||||
clear
|
||||
echo "FAIL - Password contained not allowed chars (see next screen)"
|
||||
echo "Press ENTER to continue .."
|
||||
read key
|
||||
passwordValid=0
|
||||
fi
|
||||
else
|
||||
|
||||
# change user passwords and then change hostname
|
||||
echo "pi:$result" | sudo chpasswd
|
||||
@@ -76,7 +76,7 @@ Write them down & store them in a safe place.
|
||||
shred $_temp
|
||||
|
||||
clearedResult=$(echo "${result}" | tr -dc '[:alnum:]-.' | tr -d ' ')
|
||||
if [ ${#clearedResult} != ${#result} ] || [ ${#clearedResult} -eq 0]; then
|
||||
if [ ${#clearedResult} != ${#result} ] || [ ${#clearedResult} -eq 0 ]; then
|
||||
clear
|
||||
echo "FAIL - Password contained not allowed chars (see next screen)"
|
||||
echo "Press ENTER to continue to start again"
|
||||
@@ -94,6 +94,8 @@ Write them down & store them in a safe place.
|
||||
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user