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
|
||||
printf "\n"
|
||||
if [ "$PASSWORD" == "$PASSWORD_CONFIRM" ]; then
|
||||
exit 0
|
||||
return
|
||||
else
|
||||
ERROR "Passwords do not match"
|
||||
get_password
|
||||
fi
|
||||
}
|
||||
|
||||
(get_password);
|
||||
get_password
|
||||
|
||||
EVENT "Setting up luks"
|
||||
|
||||
|
|
Loading…
Reference in a new issue