Only run the composer and npm install if the folder is not there

This commit is contained in:
Alex Tselegidis 2023-08-15 13:56:25 +02:00
parent 0084eb8cd3
commit a212b1beee

View file

@ -4,10 +4,10 @@ echo "➜ Set Correct Permissions"
chmod -R 777 storage chmod -R 777 storage
echo "➜ Install Composer Dependencies" echo "➜ Install Composer Dependencies"
composer install [[ -d vendor ]] || composer install
echo "➜ Install NPM Dependencies" echo "➜ Install NPM Dependencies"
npm install [[ -d node_modules ]] || npm install
echo "➜ Build Project Assets" echo "➜ Build Project Assets"
npx gulp compile npx gulp compile