From cf395fb7d702b3dda78b3d70a4fd5e7685375732 Mon Sep 17 00:00:00 2001 From: Benjie Date: Wed, 12 Jun 2024 15:16:59 +0100 Subject: [PATCH] Fix publish scripts --- package.json | 2 +- resources/checkgit.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f8c35289bd..7ef1a6d546 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "node": ">= 10.x" }, "scripts": { - "preversion": ". ./resources/checkgit.sh && npm ci", + "preversion": "bash -c '. ./resources/checkgit.sh && npm ci'", "version": "node resources/gen-version.js && npm test && git add src/version.js", "fuzzonly": "mocha --full-trace src/**/__tests__/**/*-fuzz.js", "changelog": "node resources/gen-changelog.js", diff --git a/resources/checkgit.sh b/resources/checkgit.sh index f8e942bc8e..a9a914ff97 100644 --- a/resources/checkgit.sh +++ b/resources/checkgit.sh @@ -1,4 +1,5 @@ # Exit immediately if any subcommand terminated +set -e trap "exit 1" ERR #