Skip to content

Commit 1cf38f0

Browse files
committed
build-ca: Verbose messages, improve 'if/elif' logic
Signed-off-by: Richard T Bonhomme <[email protected]>
1 parent 7289074 commit 1cf38f0

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

easyrsa3/easyrsa

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1941,19 +1941,15 @@ Please update 'openssl-easyrsa.cnf' to the latest Easy-RSA release."
19411941
if [ "$EASYRSA_RAW_CA" ]; then
19421942
verbose "\
19431943
build_ca: CA key password created via RAW"
1944-
else
1945-
if [ "$ca_password_via_cmdline" ]; then
1944+
elif [ "$ca_password_via_cmdline" ]; then
19461945
verbose "\
19471946
build_ca: CA key password created via command options"
1948-
else
1949-
if [ "$EASYRSA_NO_PASS" ]; then
1947+
elif [ "$EASYRSA_NO_PASS" ]; then
19501948
verbose "\
19511949
build_ca: CA key has no password"
1952-
else
1950+
else
19531951
verbose "\
19541952
build_ca: CA key password created via temp-files"
1955-
fi
1956-
fi
19571953
fi
19581954

19591955
# Generate the CA keypair:

0 commit comments

Comments
 (0)