Flip short-circuit to avoid having to capture unnecessary error

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2022-04-13 12:36:02 +01:00
parent d29aee3e1b
commit 7e73368a28
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -1257,9 +1257,7 @@ $(display_dn req "$req_in")
fi
# Add any advanced extensions supplied by env-var:
[ -n "$EASYRSA_EXTRA_EXTS" ] && print "$EASYRSA_EXTRA_EXTS"
: # needed to keep die from inheriting the above test
[ -z "$EASYRSA_EXTRA_EXTS" ] || print "$EASYRSA_EXTRA_EXTS"
} > "$ext_tmp" || die "\
Failed to create temp extension file (bad permissions?) at:
$ext_tmp"