Prefer test for '-z' over '!'

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2023-07-02 22:13:18 +01:00
parent c5d698d169
commit 3db8c50782
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -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