Skip to content

Commit

Permalink
Only set a temp-dir session name _if_ temp-dir session was created
Browse files Browse the repository at this point in the history
Also, minor log improvement to op-test.sh

Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed May 1, 2022
1 parent 26dd7af commit 8d1be1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,8 @@ Non-existant temporary directory: $EASYRSA_TEMP_DIR"
rand="$("$EASYRSA_OPENSSL" rand -hex 4)" \
|| die "secure_session - rand '$rand'"

mkdir "${EASYRSA_TEMP_DIR}/${rand}" || continue
EASYRSA_TEMP_DIR_session="${EASYRSA_TEMP_DIR}/${rand}"
mkdir "$EASYRSA_TEMP_DIR_session" || continue
return
done
return 1
Expand Down
1 change: 1 addition & 0 deletions op-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ download_shellcheck () {
log "version check failed: ${ERSA_UT}/${target_file}"
sc_bin="${ERSA_UT}/${target_file}"
sc_bin_ok=1
log "shellcheck enabled"
else
# download and basic check
log "curl_it ${target_file}"
Expand Down

0 comments on commit 8d1be1c

Please sign in to comment.