Created
March 6, 2015 09:51
-
-
Save werdnum/404402cbd33955a27c7a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
DIRS=(`echo ~/wm-dev/vagrant{,/mediawiki{,/extensions/*,/skins/*}}`) | |
for dir in $DIRS; do | |
test -d $dir || continue; | |
test -e $dir/.git || continue; | |
( | |
cd $dir && | |
git pull --rebase || echo "Pull failed on $dir" && break | |
git submodule update --rebase --init --recursive || echo "Submodule update failed on $dir" && break | |
test -e bower.json && bower install && bower update; | |
test -e composer.json && composer install; | |
) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment