Visual linebreak after reading password

This commit is contained in:
oddlama 2021-05-31 17:27:03 +02:00
parent 7c9d001a20
commit b110b4e5dd
No known key found for this signature in database
GPG Key ID: 14EFE510775FE39A
2 changed files with 3 additions and 1 deletions

View File

@ -99,6 +99,7 @@ function check_encryption_key() {
flush_stdin
read -s -r -p "Enter encryption key: " encryption_key_1 \
|| die "Error in read"
echo
[[ ${#encryption_key_1} -ge 8 ]] \
|| { ewarn "Your encryption key must be at least 8 characters long."; continue; }
@ -106,6 +107,7 @@ function check_encryption_key() {
flush_stdin
read -s -r -p "Repeat encryption key: " encryption_key_2 \
|| die "Error in read"
echo
[[ "$encryption_key_1" == "$encryption_key_2" ]] \
|| { ewarn "Encryption keys mismatch."; continue; }

View File

@ -10,7 +10,7 @@ function einfo() {
}
function ewarn() {
echo "[!] $*" >&2
echo "[!] $*" >&2
}
function eerror() {