Last active
July 8, 2023 23:25
-
-
Save Calinou/87fe757a867ebd078963 to your computer and use it in GitHub Desktop.
Updates all Subversion repositories in a directory
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 | |
# Copyright (c) 2015 Calinou | |
# CC0 1.0 Universal | |
# <https://creativecommons.org/publicdomain/zero/1.0/> | |
update() { | |
for d in "$@"; do | |
test -d "$d" -a \! -L "$d" || continue | |
cd "$d" | |
if [ -d ".svn" ]; then | |
echo -e "\e[1;35m$PWD\e[0m" | |
svn up | |
fi | |
cd .. | |
done | |
} | |
update * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment