Skip to content

Commit ec206fc

Browse files
Terminate shell scripts if any subcomand terminated (#1842)
1 parent c11ccba commit ec206fc

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

resources/checkgit.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Exit immediately if any subcommand terminated
2+
trap "exit 1" TERM
3+
14
#
25
# This script determines if current git state is the up to date master. If so
36
# it exits normally. If not it prompts for an explicit continue. This script

resources/gitpublish.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/sh -e
22

3+
# Exit immediately if any subcommand terminated
4+
trap "exit 1" TERM
5+
36
# This script maintains a git branch which mirrors master but in a form that
47
# what will eventually be deployed to npm, allowing npm dependencies to use:
58
#

resources/prepublish.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Exit immediately if any subcommand terminated
2+
trap "exit 1" TERM
3+
14
# Publishing to NPM is currently supported by Travis CI, which ensures that all
25
# tests pass first and the deployed module contains the correct file structure.
36
# In order to prevent inadvertently circumventing this, we ensure that a CI

0 commit comments

Comments
 (0)