From c6493c3d966f2c5fb184ffa2cc74e3bb44f404e3 Mon Sep 17 00:00:00 2001 From: Caleb Hearon Date: Thu, 1 Nov 2018 13:18:52 -0400 Subject: [PATCH] rename release.sh to tarball.sh, more logging "release" did not describe what it really did --- ci/install.sh | 2 +- ci/{release.sh => tarball.sh} | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) rename ci/{release.sh => tarball.sh} (77%) diff --git a/ci/install.sh b/ci/install.sh index cc90271..5020092 100755 --- a/ci/install.sh +++ b/ci/install.sh @@ -46,7 +46,7 @@ for ver in $NODEJS_VERSIONS; do if [ $? -eq 0 ]; then cd .. source ci/$OS/bundle.sh; - source ci/release.sh; + source ci/tarball.sh; else echo "error building in nodejs version $ver" cd .. diff --git a/ci/release.sh b/ci/tarball.sh similarity index 77% rename from ci/release.sh rename to ci/tarball.sh index 525f050..461cb21 100755 --- a/ci/release.sh +++ b/ci/tarball.sh @@ -7,7 +7,11 @@ FILENAME=$( ).tar.gz; # Zip up the release -tar -C node-canvas/build -czf $FILENAME Release/ || { +tar -C node-canvas/build -czf $FILENAME Release/; + +if [ $? -ne 0 ]; then echo "failed to make tarball $FILENAME from node-canvas/build" exit 1; -} +else + echo "created release tarball $FILENAME"; +fi