From 8d1be1c9cf2333a8eee63c86191d27b2e5b63e8b Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Sun, 1 May 2022 22:21:20 +0100 Subject: [PATCH] Only set a temp-dir session name _if_ temp-dir session was created Also, minor log improvement to op-test.sh Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 2 +- op-test.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index cd2437507..7a9318523 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -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 diff --git a/op-test.sh b/op-test.sh index e53e780e6..ffea324a7 100644 --- a/op-test.sh +++ b/op-test.sh @@ -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}"