сохраняет реальный rc от git clone
This commit is contained in:
parent
2d60642047
commit
cfca0163d8
|
|
@ -63,14 +63,19 @@ run_step() {
|
||||||
"$@"
|
"$@"
|
||||||
) >>"$LOG_FILE" 2>&1 &
|
) >>"$LOG_FILE" 2>&1 &
|
||||||
local pid=$!
|
local pid=$!
|
||||||
|
local rc=0
|
||||||
|
|
||||||
if spinner "$pid" "$msg"; then
|
spinner "$pid" "$msg"
|
||||||
|
rc=$?
|
||||||
|
|
||||||
|
if [[ "$rc" -eq 0 ]]; then
|
||||||
log "OK: ${msg}"
|
log "OK: ${msg}"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local rc=$?
|
|
||||||
log "ERROR: ${msg} failed with rc=${rc}"
|
log "ERROR: ${msg} failed with rc=${rc}"
|
||||||
|
log "Last log lines for ${msg}:"
|
||||||
|
tail -n 20 "$LOG_FILE" || true
|
||||||
return "$rc"
|
return "$rc"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -60,14 +60,19 @@ run_step() {
|
||||||
"$@"
|
"$@"
|
||||||
) >>"$LOG_FILE" 2>&1 &
|
) >>"$LOG_FILE" 2>&1 &
|
||||||
local pid=$!
|
local pid=$!
|
||||||
|
local rc=0
|
||||||
|
|
||||||
if spinner "$pid" "$msg"; then
|
spinner "$pid" "$msg"
|
||||||
|
rc=$?
|
||||||
|
|
||||||
|
if [[ "$rc" -eq 0 ]]; then
|
||||||
log "OK: ${msg}"
|
log "OK: ${msg}"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local rc=$?
|
|
||||||
log "ERROR: ${msg} failed with rc=${rc}"
|
log "ERROR: ${msg} failed with rc=${rc}"
|
||||||
|
log "Last log lines for ${msg}:"
|
||||||
|
tail -n 20 "$LOG_FILE" || true
|
||||||
return "$rc"
|
return "$rc"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue