сохраняет реальный rc от git clone

This commit is contained in:
Andrei Smaliak 2026-06-06 06:42:57 +04:00
parent 2d60642047
commit cfca0163d8
2 changed files with 14 additions and 4 deletions

View File

@ -63,14 +63,19 @@ run_step() {
"$@"
) >>"$LOG_FILE" 2>&1 &
local pid=$!
local rc=0
if spinner "$pid" "$msg"; then
spinner "$pid" "$msg"
rc=$?
if [[ "$rc" -eq 0 ]]; then
log "OK: ${msg}"
return 0
fi
local rc=$?
log "ERROR: ${msg} failed with rc=${rc}"
log "Last log lines for ${msg}:"
tail -n 20 "$LOG_FILE" || true
return "$rc"
}

View File

@ -60,14 +60,19 @@ run_step() {
"$@"
) >>"$LOG_FILE" 2>&1 &
local pid=$!
local rc=0
if spinner "$pid" "$msg"; then
spinner "$pid" "$msg"
rc=$?
if [[ "$rc" -eq 0 ]]; then
log "OK: ${msg}"
return 0
fi
local rc=$?
log "ERROR: ${msg} failed with rc=${rc}"
log "Last log lines for ${msg}:"
tail -n 20 "$LOG_FILE" || true
return "$rc"
}