build-ca: Remove unnecessary 'elif' check

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2022-11-28 00:02:22 +00:00
parent a51278be73
commit 37f9d3768e
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -1267,9 +1267,7 @@ get_passphrase() {
printf '\n%s' "$prompt"
hide_read_pass r
if [ -z "$r" ]; then
printf '\n%s\n' "Passphrase must not be empty!"
elif [ "${#r}" -lt 4 ]; then
if [ "${#r}" -lt 4 ]; then
printf '\n%s\n' "Passphrase must be at least 4 characters!"
else
unset -v "$@"