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:
parent
26dd7af541
commit
8d1be1c9cf
@ -384,8 +384,8 @@ Non-existant temporary directory: $EASYRSA_TEMP_DIR"
|
|||||||
rand="$("$EASYRSA_OPENSSL" rand -hex 4)" \
|
rand="$("$EASYRSA_OPENSSL" rand -hex 4)" \
|
||||||
|| die "secure_session - rand '$rand'"
|
|| die "secure_session - rand '$rand'"
|
||||||
|
|
||||||
|
mkdir "${EASYRSA_TEMP_DIR}/${rand}" || continue
|
||||||
EASYRSA_TEMP_DIR_session="${EASYRSA_TEMP_DIR}/${rand}"
|
EASYRSA_TEMP_DIR_session="${EASYRSA_TEMP_DIR}/${rand}"
|
||||||
mkdir "$EASYRSA_TEMP_DIR_session" || continue
|
|
||||||
return
|
return
|
||||||
done
|
done
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
@ -225,6 +225,7 @@ download_shellcheck () {
|
|||||||
log "version check failed: ${ERSA_UT}/${target_file}"
|
log "version check failed: ${ERSA_UT}/${target_file}"
|
||||||
sc_bin="${ERSA_UT}/${target_file}"
|
sc_bin="${ERSA_UT}/${target_file}"
|
||||||
sc_bin_ok=1
|
sc_bin_ok=1
|
||||||
|
log "shellcheck enabled"
|
||||||
else
|
else
|
||||||
# download and basic check
|
# download and basic check
|
||||||
log "curl_it ${target_file}"
|
log "curl_it ${target_file}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user