From 799f5a015662114891147da00a71c59293b7c768 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 29 Aug 2020 08:18:59 -0300 Subject: scripts/test-hook.sh: Don't duplicate exit code --- scripts/test-hook.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/scripts/test-hook.sh b/scripts/test-hook.sh index 0a561ae..64ca6b9 100755 --- a/scripts/test-hook.sh +++ b/scripts/test-hook.sh @@ -15,14 +15,9 @@ LOGFILE="${LOGS_DIR}/$(date -Is)-${COMMIT}.log" touch "${LOGFILE}" "${LOGS_PREFIX}"/ci-gen-index.sh -status() { - printf "\n\n>>> exit status was %s\n" "$1" >> "$LOGFILE" -} - finish() { - status "$?" + printf "\n\n>>> exit status was %s\n" "$1" >> "$LOGFILE" } trap finish EXIT nix-build -A test 2>&1 | tee "$LOGFILE" -status "$?" -- cgit v1.2.3