Fix reading encryption keys beginning with whitespace

This commit is contained in:
oddlama 2021-05-31 20:15:33 +02:00
parent b110b4e5dd
commit 303087aeaf
No known key found for this signature in database
GPG Key ID: 14EFE510775FE39A
1 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ function check_encryption_key() {
while true; do while true; do
flush_stdin flush_stdin
read -s -r -p "Enter encryption key: " encryption_key_1 \ IFS="" read -s -r -p "Enter encryption key: " encryption_key_1 \
|| die "Error in read" || die "Error in read"
echo echo
@ -105,7 +105,7 @@ function check_encryption_key() {
|| { ewarn "Your encryption key must be at least 8 characters long."; continue; } || { ewarn "Your encryption key must be at least 8 characters long."; continue; }
flush_stdin flush_stdin
read -s -r -p "Repeat encryption key: " encryption_key_2 \ IFS="" read -s -r -p "Repeat encryption key: " encryption_key_2 \
|| die "Error in read" || die "Error in read"
echo echo