FEATURE: add check for failed git pull in update

This commit is contained in:
Michal Kváček
2016-04-05 22:27:22 +02:00
parent 7446e2f4ef
commit ced6f978a8
+9 -2
View File
@@ -31,8 +31,15 @@ fi
git checkout $BRANCH git checkout $BRANCH
git pull origin $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 migrate
php artisan vendor:publish --tag=module-views --force php artisan vendor:publish --tag=module-views --force -n
php artisan vendor:publish --tag=public-assets --force php artisan vendor:publish --tag=public-assets --force -n
composer install --no-dev composer install --no-dev