From ced6f978a826aed0744af461a48565722fb1770a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kv=C3=A1=C4=8Dek?= Date: Tue, 5 Apr 2016 22:27:22 +0200 Subject: [PATCH] FEATURE: add check for failed git pull in update --- scripts/update.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/update.sh b/scripts/update.sh index 775b4d0e..0619cebf 100644 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -31,8 +31,15 @@ fi git checkout $BRANCH git pull origin $BRANCH +if [ ! $? -eq 0 ]; then + echo " *****************************" + echo " * ERROR: cannot do git pull *" + echo " *****************************" + exit 2 +fi + php artisan migrate -php artisan vendor:publish --tag=module-views --force -php artisan vendor:publish --tag=public-assets --force +php artisan vendor:publish --tag=module-views --force -n +php artisan vendor:publish --tag=public-assets --force -n composer install --no-dev