Stream Jeannie step output to logs

This commit is contained in:
juvdiaz 2026-07-01 13:49:02 -06:00
parent 1bdde9c128
commit ea4576c707
1 changed files with 2 additions and 3 deletions

View File

@ -876,14 +876,14 @@ run_step() {
if jeannie_verbose_enabled; then
set +e
"$@" 2>&1 | redact_sensitive_output | tee "${step_log}"
"$@" 2>&1 | redact_sensitive_output | tee "${step_log}" | tee -a "${JEANNIE_LOG_FILE}"
status=${PIPESTATUS[0]}
set -e
else
set +e
(
set +e
"$@" 2>&1 | redact_sensitive_output >"${step_log}"
"$@" 2>&1 | redact_sensitive_output | tee "${step_log}" >>"${JEANNIE_LOG_FILE}"
printf '%s\n' "${PIPESTATUS[0]}" >"${status_file}"
) &
progress_pid=$!
@ -902,7 +902,6 @@ run_step() {
set -e
fi
cat "${step_log}" >>"${JEANNIE_LOG_FILE}"
printf 'Finished: %s\n' "$(date -Is)" >>"${JEANNIE_LOG_FILE}"
if ((status == 0)); then