From c2a86ea8f62fdfa4517d28faa5bfa33e301cec79 Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Wed, 2 Mar 2022 14:33:43 +0000 Subject: [PATCH] build stop early if apk add fails --- appveyor.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 6196fe2..ed0d5a0 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -27,7 +27,9 @@ test_script: on_success: - sh: | - apk add curl jq + if [ ! apk add curl jq ]; then + exit 1 + fi CURR_VER=$(cat package.json | jq -r .version) if curl -s -X GET -H "Authorization: token $deploytoken" https://git.nfp.is/api/v1/repos/$APPVEYOR_REPO_NAME/releases | grep -o "\"name\"\:\"v${CURR_VER}\"" > /dev/null; then echo "Release already exists, nothing to do.";