Update build.func

tweak
This commit is contained in:
tteckster 2024-04-23 07:23:12 -04:00 committed by GitHub
parent bf4a04528b
commit cfd4c979a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ advanced_settings() {
PW="" PW=""
elif [[ "$PW1" == *" "* ]]; then elif [[ "$PW1" == *" "* ]]; then
whiptail --msgbox "Password cannot contain spaces. Please try again." 8 58 whiptail --msgbox "Password cannot contain spaces. Please try again." 8 58
elif [ "${#PW1}" -lt 5 ]; then elif [ ${#PW1} -ge 1 ] && [ ${#PW1} -lt 5 ]; then
whiptail --msgbox "Password must be at least 5 characters long. Please try again." 8 58 whiptail --msgbox "Password must be at least 5 characters long. Please try again." 8 58
else else
PW="-password $PW1" PW="-password $PW1"