Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Run some commands in bulk project with bash script
#!/bin/bash
RED='\033[0;31m'
NC='\033[0m'
array=(
"project-name1"
"project-name2"
)
for i in ${array[*]}
do
echo -e "--------------------${RED} ${i} ${NC}---------------------"
cd $i
#git reset --hard
#git config --global credential.helper cache
#git pull
#composer update
#git add .
#git commit -m "Update composer"
#git push
cd ../
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.