added missing space

This commit is contained in:
rootzoll
2018-11-28 14:17:21 +01:00
parent f8e4d482fa
commit cd668c9a1c

View File

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