easyrsa_mktemp(): Drop redundant test of temp-session existence
Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
parent
043448503f
commit
f762627e2d
@ -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 ))"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user