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 committed 2023-02-09 00:21:35 +00:00
1 parent 043448503f
commit f762627e2d
1 file changed
+2 -9
+2 -9
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 ))"