fix formatting, add subshell so no quit
This commit is contained in:
parent
1c5c24cd96
commit
f5897a6ef0
1 changed files with 3 additions and 1 deletions
|
@ -23,7 +23,9 @@ fi
|
|||
|
||||
get_password() {
|
||||
read -s -p "LUKS password: " PASSWORD
|
||||
printf "\n"
|
||||
read -s -p "Confirm password: " PASSWORD_CONFIRM
|
||||
printf "\n"
|
||||
if [ "$PASSWORD" == "$PASSWORD_CONFIRM" ]; then
|
||||
exit 0
|
||||
else
|
||||
|
@ -32,7 +34,7 @@ get_password() {
|
|||
fi
|
||||
}
|
||||
|
||||
get_password
|
||||
(get_password);
|
||||
|
||||
EVENT "Setting up luks"
|
||||
|
||||
|
|
Loading…
Reference in a new issue