From a39024709f2020774eb7b494e8e27a7a99ca214c Mon Sep 17 00:00:00 2001 From: Pagan Gazzard Date: Thu, 14 Aug 2014 13:26:10 +0100 Subject: [PATCH] Stop the pre/postinstall scripts on error. --- deps.sh | 3 +++ postinstall.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/deps.sh b/deps.sh index d1deaf62..be509fa0 100644 --- a/deps.sh +++ b/deps.sh @@ -1,3 +1,6 @@ +set -o errexit +set -o pipefail + if [ $NODE_ENV == 'production' ]; then # Deploy key for private npm modules mkdir -p /root/.ssh diff --git a/postinstall.sh b/postinstall.sh index bd45e5cd..6d4b7a03 100755 --- a/postinstall.sh +++ b/postinstall.sh @@ -1,3 +1,6 @@ +set -o errexit +set -o pipefail + if [ $NODE_ENV == 'production' ]; then node ./node_modules/coffee-script/bin/coffee -c ./src # We don't need coffee-script at runtime