From cac796e1ab4ed170658d9056b27368e30cde3fcb Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 8 Mar 2021 14:51:03 -0800 Subject: ARM build script: more reliable detection of completion. Previously we downloaded the tar.gz before it was complete. --- linux/make_artifacts.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'linux') diff --git a/linux/make_artifacts.sh b/linux/make_artifacts.sh index b32384ed4..43002218e 100644 --- a/linux/make_artifacts.sh +++ b/linux/make_artifacts.sh @@ -11,6 +11,13 @@ esac ARTIFACTS="${ARTIFACTS:-/artifacts}" +rm $ARTIFACTS/* + +clean_up() { + echo "All done!" > "$ARTIFACTS/DONE" +} +trap clean_up EXIT + # build binaries cabal --version @@ -72,3 +79,5 @@ gzip -9 $TARGET/share/man/man1/pandoc.1 tar cvzf $TARGET-linux-$ARCHITECTURE.tar.gz $TARGET rm -r $TARGET + +exit 0 -- cgit v1.2.3