From b3c3b69a36658b0c3a25d9265ecd65a2d4f30c65 Mon Sep 17 00:00:00 2001 From: Dave Page Date: Fri, 15 Mar 2019 09:20:13 +0000 Subject: [PATCH] Bail out if yarn returns a non-zero code. --- pkg/mac/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/mac/build.sh b/pkg/mac/build.sh index 3cb974171..43dec5276 100755 --- a/pkg/mac/build.sh +++ b/pkg/mac/build.sh @@ -191,8 +191,8 @@ _complete_bundle() { ./complete-bundle.sh "$BUILDROOT/$APP_BUNDLE_NAME" || { echo complete-bundle.sh failed; exit 1; } pushd $SOURCEDIR/web - yarn install - yarn run bundle + yarn install || exit 1 + yarn run bundle || exit 1 curl https://curl.haxx.se/ca/cacert.pem -o cacert.pem -s || { echo Failed to download cacert.pem; exit 1; } popd