Update password check in config_file function for clarity and consistency

This commit is contained in:
Michel Roegl-Brunner 2025-05-16 12:08:44 +02:00
parent 19d6c289a7
commit ccc3c72bb9

View File

@ -874,7 +874,7 @@ config_file() {
if [[ -n "${PW-}" ]]; then
if [[ "$PW" == "no" ]]; then
if [[ "$PW" == "none" ]]; then
PW=""
else
if [[ "$PW" == *" "* ]]; then
@ -912,7 +912,6 @@ config_file() {
else
PW1="Automatic Login"
PW=""
PW_CONFIG="no"
echo -e "${VERIFYPW}${BOLD}${DGN}Root Password: ${BGN}$PW1${CL}"
break
fi