From 3db8c50782ec641ddc80c451867f6b40c2b0a470 Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Sun, 2 Jul 2023 22:13:18 +0100 Subject: [PATCH] Prefer test for '-z' over '!' Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 27fe83f..60645a3 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -5561,7 +5561,7 @@ Priority should be given to your PKI vars file: # not required if [ "$EASYRSA_NO_VARS" ]; then : # ok - elif [ ! "$require_pki" ]; then + elif [ -z "$require_pki" ]; then : # ok # If a vars file was located then source it @@ -5722,7 +5722,8 @@ verify_working_env - install_data_to_pki vars-setup failed" # if the vars file in use is not in the PKI # and not user defined then Show the messages - if [ "$vars_in_pki" ] || [ "$user_vars_true" ] || \ + if [ "$vars_in_pki" ] || \ + [ "$user_vars_true" ] || \ [ "$no_new_vars" ] then : # ok - No message required