Skip to content

Instantly share code, notes, and snippets.

@werdnum
Created March 6, 2015 09:51
Show Gist options
  • Save werdnum/404402cbd33955a27c7a to your computer and use it in GitHub Desktop.
Save werdnum/404402cbd33955a27c7a to your computer and use it in GitHub Desktop.
#!/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