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 <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2022-05-01 22:21:20 +01:00
parent 26dd7af541
commit 8d1be1c9cf
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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}"