-
-
Save aberant/27f6e35c2d2e32ab0dc8 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/bash | |
echo "Bash version ${BASH_VERSION}..." | |
cd ~/.vim/bundle | |
for plugin in ~/.vim/bundle/* | |
do | |
echo "Updating $plugin" | |
( cd $plugin; git pull --rebase origin master ) | |
echo "DONE!" | |
done | |
cd - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is great! For sub-shelling, what would be the difference if it was
( cd $plugin && git pull --rebase origin master )
. Does the;
version have different characteristics? Both seem to work the same way but I am not sure if there are subtle differences.