From c8a29b4651d1e4cf2e32e8498996144e49c5d9cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Fri, 31 Jul 2015 16:16:26 +0200 Subject: [PATCH] Fail the shell scripts if npm or bower fail --- server_config/server_install.sh | 4 ++-- server_config/server_update.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server_config/server_install.sh b/server_config/server_install.sh index 0166b7d..7355ea5 100644 --- a/server_config/server_install.sh +++ b/server_config/server_install.sh @@ -21,8 +21,8 @@ sudo chown $USER /space cd /space git clone https://github.com/gmetais/YellowLabTools.git --branch master cd YellowLabTools -npm install -bower install --config.interactive=false --allow-root +npm install || exit 1 +bower install --config.interactive=false --allow-root || exit 1 # Front-end compilation grunt build diff --git a/server_config/server_update.sh b/server_config/server_update.sh index 2519d61..0da2289 100755 --- a/server_config/server_update.sh +++ b/server_config/server_update.sh @@ -12,9 +12,9 @@ git stash pop # In case something was added in package.json or bower.json rm -rf node_modules -npm install +npm install || exit 1 rm -rf bower_components -bower install --config.interactive=false --allow-root +bower install --config.interactive=false --allow-root || exit 1 # Front-end compilation rm -rf front/build