Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chriswmartin/a8e4a35ce4da6600cf38a2ba2ab8a84e to your computer and use it in GitHub Desktop.
Save chriswmartin/a8e4a35ce4da6600cf38a2ba2ab8a84e to your computer and use it in GitHub Desktop.
#!/bin/bash
user=bakercp
if [ -f "addons.make" ]
then
while read addons; do
if [ -d ../../addons/"$addons" ];
then
cd ../../addons/$addons; git checkout develop; git pull; cd -
else
cd ../../addons/; git clone git@github.com:$user/$addons.git; cd -;
cd ../../addons/$addons; git checkout develop; git pull; cd -;
fi
done <addons.make
else
exit
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment