From 94164615a2a8bec6e24fde8672e38d281e870424 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Wed, 28 Nov 2018 14:10:00 +0100 Subject: [PATCH] prevent empty password --- home.admin/20initDialog.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home.admin/20initDialog.sh b/home.admin/20initDialog.sh index 5c231d7..a19c393 100755 --- a/home.admin/20initDialog.sh +++ b/home.admin/20initDialog.sh @@ -50,7 +50,7 @@ Write them down & store them in a safe place. passwordValid=1 clearedResult=$(echo "${result}" | tr -dc '[:alnum:]-.' | tr -d ' ') - if [ ${#clearedResult} != ${#result} ]; then + if [ ${#clearedResult} != ${#result} ] || [ ${#clearedResult} -eq 0]; then clear echo "FAIL - Password contained not allowed chars (see next screen)" echo "Press ENTER to continue .."