Stop the pre/postinstall scripts on error.

This commit is contained in:
Pagan Gazzard 2014-08-14 13:26:10 +01:00 committed by Pablo Carranza Vélez
parent d07c6abe99
commit a39024709f
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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