From e35d8adefb1b90791d318f158de83958455d470f Mon Sep 17 00:00:00 2001 From: deadcxap <36386824+deadcxap@users.noreply.github.com> Date: Mon, 25 Aug 2025 10:51:12 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BA=D1=80=D1=8B=D1=82=20=D0=B2=D1=8B?= =?UTF-8?q?=D0=B2=D0=BE=D0=B4=20=D0=BA=D0=BE=D0=BC=D0=B0=D0=BD=D0=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index d90fb7c..43327a8 100644 --- a/setup.sh +++ b/setup.sh @@ -14,13 +14,15 @@ run() { local desc="$1" shift log "$desc" - if "$@"; then + local output + if output=$("$@" 2>&1); then log "OK: $desc" SUMMARY+=("$desc: OK") else local rc=$? log "ERROR: $desc (code $rc)" SUMMARY+=("$desc: ERROR") + echo "$output" >&2 exit $rc fi } @@ -306,7 +308,7 @@ setup_role() { REPO_URL="https://github.com/deadcxap/init_scripts.git" ROLE_URL="https://api.github.com/repos/deadcxap/init_scripts/contents/$ROLE" log "Checking role $ROLE exists in repository" - if curl -fsSL -o /dev/null "$ROLE_URL"; then + if curl -fsSL -o /dev/null "$ROLE_URL" 2>/dev/null; then log "OK: role $ROLE exists in repository" SUMMARY+=("Role exists check: OK") else