diff options
| author | John MacFarlane <[email protected]> | 2023-01-25 10:27:39 -0800 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2023-01-25 10:27:39 -0800 |
| commit | ad3d7c19144b2bac7084499b8fd3a62aa0972a6e (patch) | |
| tree | 99ac82abaada491d3a9b3939db28b2335f6289ee | |
| parent | d3f0cb7a2f434d47e77c1870cbeb25b2eedce205 (diff) | |
Add exit trapping code back to make_artifacts.sh.3.0.1
Otherwise it never exits!
| -rw-r--r-- | linux/make_artifacts.sh | 8 |
1 files changed, 8 insertions, 0 deletions
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 |
