Skip to content

Commit

Permalink
Terminate shell scripts if any subcomand terminated (#1842)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed May 1, 2019
1 parent c11ccba commit ec206fc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resources/checkgit.sh
@@ -1,3 +1,6 @@
# Exit immediately if any subcommand terminated
trap "exit 1" TERM

#
# This script determines if current git state is the up to date master. If so
# it exits normally. If not it prompts for an explicit continue. This script
Expand Down
3 changes: 3 additions & 0 deletions resources/gitpublish.sh
@@ -1,5 +1,8 @@
#!/bin/sh -e

# Exit immediately if any subcommand terminated
trap "exit 1" TERM

# 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:
#
Expand Down
3 changes: 3 additions & 0 deletions resources/prepublish.sh
@@ -1,3 +1,6 @@
# Exit immediately if any subcommand terminated
trap "exit 1" TERM

# 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.
# In order to prevent inadvertently circumventing this, we ensure that a CI
Expand Down

0 comments on commit ec206fc

Please sign in to comment.