Prevent package-update.sh to run without installing composer dependencies

This commit is contained in:
Claudio Sanches 2019-07-08 15:17:11 -03:00
parent e64bc772d3
commit a0defeb684
1 changed files with 6 additions and 1 deletions

View File

@ -12,7 +12,7 @@
# 6 - cian
# 7 - white
output() {
echo "$(tput setaf "$1")$2$(tput sgr0)"
echo "$(tput setaf "$1")$2$(tput sgr0)"
}
updating=false
@ -28,6 +28,11 @@ do
shift
done
if [ ! -d "packages/" ]; then
output 1 "./packages doesn't exist!"
output 1 "run \"composer install\" before proceed."
fi
# Autoloader
output 3 "Updating autoloader classmaps..."
composer dump-autoload