Prevent package-update.sh to run without installing composer dependencies
This commit is contained in:
parent
e64bc772d3
commit
a0defeb684
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue