summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey C. Ollie <jeff@ocjtech.us>2007-03-30 23:54:21 -0500
committerJeffrey C. Ollie <jeff@ocjtech.us>2008-12-16 22:00:32 -0600
commitccfb0f70bcf2865ce6cd25c653cff6946053efcb (patch)
tree9846ac7b897d625a2fc0019bcb2d4715faa6f8c9
parent0d2c95a8210a6456f11647ef2cbdf05414ca91d4 (diff)
downloadrancid-ccfb0f70bcf2865ce6cd25c653cff6946053efcb.tar.gz
rancid-ccfb0f70bcf2865ce6cd25c653cff6946053efcb.tar.xz
rancid-ccfb0f70bcf2865ce6cd25c653cff6946053efcb.zip
Don't delete .cvsignore and .gitignore files.
-rw-r--r--bin/control_rancid.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/control_rancid.in b/bin/control_rancid.in
index 3f29b00..0a22138 100644
--- a/bin/control_rancid.in
+++ b/bin/control_rancid.in
@@ -402,7 +402,7 @@ for router in `cut -d: -f1 ../routers.up` ; do
done
echo
# delete configs from RCS for routers not listed in routers.up.
-for router in `find . \( -name \*.new -prune -o -name CVS -prune -o -name .svn -prune -o -name .git -prune \) -o -type f -print | sed -e 's/^.\///'` ; do
+for router in `find . \( -name \*.new -prune -o -name CVS -prune -o -name .cvsignore -prune -o -name .svn -prune -o -name .git -prune -o -name .gitignore -prune \) -o -type f -print | sed -e 's/^.\///'` ; do
grep -i "^$router:" ../router.db > /dev/null 2>&1
if [ $? -eq 1 ]; then
rm -f $router