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