Skip to content

Instantly share code, notes, and snippets.

@mgirouard
Created January 25, 2012 02:28
Show Gist options
  • Save mgirouard/1674246 to your computer and use it in GitHub Desktop.
Save mgirouard/1674246 to your computer and use it in GitHub Desktop.
How to update all Vendor repositories (SVN or Git)
#!/bin/bash
for p in `ls`
do
echo Updating $p
[[ -d $p/.git ]] && cd $p && git pull && cd ..
[[ -d $p/.svn ]] && svn up $p
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment