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