Wrap long lines

hide_read_pass()
get_passphrase()

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2022-12-17 22:38:12 +00:00
parent 1cf4cce432
commit 6e0a9c78c4
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -1239,7 +1239,8 @@ hide_read_pass()
elif (echo | read -r -s 2>/dev/null) ; then
read -r -s "$@"
else
warn "Could not disable echo. Password will be shown on screen!"
warn "\
Could not disable echo. Password will be shown on screen!"
read -r "$@"
fi
@ -1254,9 +1255,11 @@ get_passphrase() {
hide_read_pass r
if [ "${#r}" -lt 4 ]; then
printf '\n%s\n' "Passphrase must be at least 4 characters!"
printf '\n%s\n' \
"Passphrase must be at least 4 characters!"
else
safe_set_var "$*" "$r" || die "Passphrase error!"
safe_set_var "$*" "$r" || \
die "Passphrase error!"
unset -v r
print
return 0