Last active
September 7, 2018 14:05
-
-
Save nzambello/02aa66d7a78a7207593ebfb129c88d84 to your computer and use it in GitHub Desktop.
Update src/ repos
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 | |
CYAN='\033[1;34m' | |
RESET='\033[0m' | |
for dir in $(ls -Ad */); | |
do | |
cd $dir | |
echo -e "> ${CYAN}${dir}${RESET}\n" | |
if [[ -d .git ]]; | |
then | |
git fetch && git pull | |
else | |
svn up | |
fi | |
cd .. | |
echo "" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment