Created
December 24, 2016 17:22
-
-
Save Samathy/715ed149c3aa0d5a194c8c14b3ac3c4a to your computer and use it in GitHub Desktop.
Small script to run 'git pull' in all subdirectories of the calling directory. (useful for updating plugins)
This file contains 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
for dir in (ls) | |
cd $dir | |
if not ls .git | |
cd ../ | |
continue | |
end | |
git pull | |
cd ../ | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment