From ad3d7c19144b2bac7084499b8fd3a62aa0972a6e Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 25 Jan 2023 10:27:39 -0800 Subject: Add exit trapping code back to make_artifacts.sh. Otherwise it never exits! --- linux/make_artifacts.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'linux/make_artifacts.sh') diff --git a/linux/make_artifacts.sh b/linux/make_artifacts.sh index 689b87282..56b19947b 100644 --- a/linux/make_artifacts.sh +++ b/linux/make_artifacts.sh @@ -16,6 +16,14 @@ esac ARTIFACTS="${ARTIFACTS:-/artifacts}" +# This is our sentinel that tells us when we're done. +rm -f $ARTIFACTS/DONE + +clean_up() { + echo "All done!" > "$ARTIFACTS/DONE" +} +trap clean_up EXIT + # build binaries cabal --version -- cgit v1.2.3