-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- can be used to update custom vim plugins on a cron
- Loading branch information
Phillip Miller
committed
Oct 22, 2021
1 parent
4c0ffeb
commit 97b8232
Showing
8 changed files
with
89 additions
and
7 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
# store the current dir | ||
CUR_DIR=$(pwd) | ||
date | ||
# Let the person running the script know what's going on. | ||
echo -e "\n\033[1mPulling in latest changes for all repositories...\033[0m\n" | ||
|
||
# Find all git repositories and update it to the master latest revision | ||
for i in $(find . -name ".git" | cut -c 3-); do | ||
echo ""; | ||
echo -e "\033[33m"+$i+"\033[0m"; | ||
cd "$i"; # We have to go to the .git parent directory to call the pull command | ||
cd ..; | ||
git pull; # finally pull | ||
cd $CUR_DIR # lets get back to the CUR_DIR | ||
done | ||
echo -e "\n\033[32mComplete!\033[0m\n" |
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
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