From cfca0163d82f38b36df34ce4a32799cd50cbbc12 Mon Sep 17 00:00:00 2001 From: Andrei Smaliak Date: Sat, 6 Jun 2026 06:42:57 +0400 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=BE=D1=85=D1=80=D0=B0=D0=BD=D1=8F?= =?UTF-8?q?=D0=B5=D1=82=20=D1=80=D0=B5=D0=B0=D0=BB=D1=8C=D0=BD=D1=8B=D0=B9?= =?UTF-8?q?=20rc=20=D0=BE=D1=82=20git=20clone?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install_iomatex_edge.sh | 9 +++++++-- install_iomatex_z2m.sh | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/install_iomatex_edge.sh b/install_iomatex_edge.sh index 5311c8a..daa285e 100755 --- a/install_iomatex_edge.sh +++ b/install_iomatex_edge.sh @@ -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" } diff --git a/install_iomatex_z2m.sh b/install_iomatex_z2m.sh index b06b01d..04122a5 100755 --- a/install_iomatex_z2m.sh +++ b/install_iomatex_z2m.sh @@ -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" }