Created
April 7, 2016 05:28
-
-
Save sergeyt/0d603bc7f64b2bf8d2aef795f93fda91 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
cwd=$PWD | |
for d in */ ; do | |
dirname="$cwd/$(basename "${d}")" | |
cd $dirname | |
if [ -d ".git" ]; then | |
git pull | |
fi | |
if [ -d ".hg" ]; then | |
hg pull -u | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment