Update password check in config_file function for clarity and consistency
This commit is contained in:
parent
19d6c289a7
commit
ccc3c72bb9
@ -874,7 +874,7 @@ config_file() {
|
|||||||
|
|
||||||
|
|
||||||
if [[ -n "${PW-}" ]]; then
|
if [[ -n "${PW-}" ]]; then
|
||||||
if [[ "$PW" == "no" ]]; then
|
if [[ "$PW" == "none" ]]; then
|
||||||
PW=""
|
PW=""
|
||||||
else
|
else
|
||||||
if [[ "$PW" == *" "* ]]; then
|
if [[ "$PW" == *" "* ]]; then
|
||||||
@ -912,7 +912,6 @@ config_file() {
|
|||||||
else
|
else
|
||||||
PW1="Automatic Login"
|
PW1="Automatic Login"
|
||||||
PW=""
|
PW=""
|
||||||
PW_CONFIG="no"
|
|
||||||
echo -e "${VERIFYPW}${BOLD}${DGN}Root Password: ${BGN}$PW1${CL}"
|
echo -e "${VERIFYPW}${BOLD}${DGN}Root Password: ${BGN}$PW1${CL}"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user