aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-08-29 08:18:59 -0300
committerEuAndreh <eu@euandre.org>2020-08-29 08:18:59 -0300
commit799f5a015662114891147da00a71c59293b7c768 (patch)
treef60e1a650a8d283a6ecf053f53b48b72d1567978 /scripts
parentdefault.nix: Don't use $NIXPKGS from environment (diff)
downloadeuandre.org-799f5a015662114891147da00a71c59293b7c768.tar.gz
euandre.org-799f5a015662114891147da00a71c59293b7c768.tar.xz
scripts/test-hook.sh: Don't duplicate exit code
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/test-hook.sh7
1 files changed, 1 insertions, 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 "$?"