Skip to content

Instantly share code, notes, and snippets.

@nzambello
Last active September 7, 2018 14:05
Show Gist options
  • Save nzambello/02aa66d7a78a7207593ebfb129c88d84 to your computer and use it in GitHub Desktop.
Save nzambello/02aa66d7a78a7207593ebfb129c88d84 to your computer and use it in GitHub Desktop.
Update src/ repos
#!/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