diff --git a/resources/checkgit.sh b/resources/checkgit.sh index 6555a93f66..a080b42566 100644 --- a/resources/checkgit.sh +++ b/resources/checkgit.sh @@ -1,5 +1,5 @@ # Exit immediately if any subcommand terminated -trap "exit 1" TERM +trap "exit 1" ERR # # This script determines if current git state is the up to date master. If so diff --git a/resources/gitpublish.sh b/resources/gitpublish.sh index 67d0c6f592..29286d4882 100644 --- a/resources/gitpublish.sh +++ b/resources/gitpublish.sh @@ -1,7 +1,7 @@ -#!/bin/sh -e +#!/bin/sh # Exit immediately if any subcommand terminated -trap "exit 1" TERM +trap "exit 1" ERR # This script maintains a git branch which mirrors master but in a form that # what will eventually be deployed to npm, allowing npm dependencies to use: diff --git a/resources/prepublish.sh b/resources/prepublish.sh index 2c4983d3bb..a13cb877aa 100644 --- a/resources/prepublish.sh +++ b/resources/prepublish.sh @@ -1,5 +1,5 @@ # Exit immediately if any subcommand terminated -trap "exit 1" TERM +trap "exit 1" ERR # Publishing to NPM is currently supported by Travis CI, which ensures that all # tests pass first and the deployed module contains the correct file structure.