Permalink
Browse files

make sure we fail if any command inside update fails

Change-Id: I89f42d9097b5f47b149ab3a45c23e35fd7f39172
  • Loading branch information...
1 parent fe899eb commit 1b38d8a452f921443b538e6d6ff5a145781733d9 Dmitriy Kalinin and Jesse Zhang committed Mar 1, 2013
Showing with 8 additions and 1 deletion.
  1. +8 −1 update
View
9 update
@@ -1,14 +1,21 @@
+# Make sure we fail if any single command fails!
+set -e -u
+
echo -e "\n### update yeti code"
git pull
+
echo -e "\n### update yeti submodule, i.e. assets"
git submodule update --init --recursive
+
echo -e "\n### bundle install ruby gems"
-ext_opt=$1
+ext_opt=${1:-local}
+
if [[ $ext_opt = 'ci' ]]
then
bundle install
else
bundle install --without ci
fi
+
echo -e "\n### sync pre-compiled java apps"
rake sync_assets

0 comments on commit 1b38d8a

Please sign in to comment.