return without subshell, otherwise no env
This commit is contained in:
parent
f5897a6ef0
commit
59968fcefa
1 changed files with 2 additions and 2 deletions
|
@ -27,14 +27,14 @@ get_password() {
|
||||||
read -s -p "Confirm password: " PASSWORD_CONFIRM
|
read -s -p "Confirm password: " PASSWORD_CONFIRM
|
||||||
printf "\n"
|
printf "\n"
|
||||||
if [ "$PASSWORD" == "$PASSWORD_CONFIRM" ]; then
|
if [ "$PASSWORD" == "$PASSWORD_CONFIRM" ]; then
|
||||||
exit 0
|
return
|
||||||
else
|
else
|
||||||
ERROR "Passwords do not match"
|
ERROR "Passwords do not match"
|
||||||
get_password
|
get_password
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
(get_password);
|
get_password
|
||||||
|
|
||||||
EVENT "Setting up luks"
|
EVENT "Setting up luks"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue