easyrsa_mktemp(): Drop redundant test of temp-session existence

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2023-02-09 00:21:35 +00:00
parent 043448503f
commit f762627e2d
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -635,15 +635,8 @@ easyrsa_mktemp() {
[ "$#" = 1 ] || die "easyrsa_mktemp - invalid input"
# session directory must exist
if [ "$EASYRSA_TEMP_DIR_session" ] && \
[ -d "$EASYRSA_TEMP_DIR_session" ]
then
: # ok
else
die "\
easyrsa_mktemp - Non-existant temporary session:
* $EASYRSA_TEMP_DIR_session"
fi
[ "$EASYRSA_TEMP_DIR_session" ] || die "\
easyrsa_mktemp - Temporary session undefined"
# Update counter
mktemp_counter="$(( mktemp_counter + 1 ))"