Skip to content

Commit

Permalink
Add exit trapping code back to make_artifacts.sh.
Browse files Browse the repository at this point in the history
Otherwise it never exits!
  • Loading branch information
jgm committed Jan 25, 2023
1 parent d3f0cb7 commit ad3d7c1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions linux/make_artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad3d7c1

Please sign in to comment.