Created
February 26, 2016 06:46
-
-
Save tors/0fc31531c8a1f8b603ea to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
cd ~/.vim/bundle | |
for directory in `ls ~/.vim/bundle` | |
do | |
echo "Checking for $directory update..." | |
if [ -d "$directory/.git" ] | |
then | |
cd $directory | |
git pull | |
cd .. | |
else | |
echo "$directory not a git plugin. Skipping update." | |
fi | |
echo | |
done | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment