diff options
author | EuAndreh <eu@euandre.org> | 2020-08-29 08:18:59 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-08-29 08:18:59 -0300 |
commit | 799f5a015662114891147da00a71c59293b7c768 (patch) | |
tree | f60e1a650a8d283a6ecf053f53b48b72d1567978 /scripts | |
parent | default.nix: Don't use $NIXPKGS from environment (diff) | |
download | euandre.org-799f5a015662114891147da00a71c59293b7c768.tar.gz euandre.org-799f5a015662114891147da00a71c59293b7c768.tar.xz |
scripts/test-hook.sh: Don't duplicate exit code
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/test-hook.sh | 7 |
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 "$?" |