summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey C. Ollie <jeff@ocjtech.us>2007-03-30 23:54:21 -0500
committerJeffrey C. Ollie <jcollie@lt26923.campus.dmacc.edu>2009-09-01 08:43:15 -0500
commitd4328c26712de36c951624055f06d158e79e5f9d (patch)
tree0337c590a59e0f1cea81051bd0e3bda1849d7854
parentf0054fed7d8a82f297f65bbdc8237ec9537886d6 (diff)
downloadrancid-d4328c26712de36c951624055f06d158e79e5f9d.tar.gz
rancid-d4328c26712de36c951624055f06d158e79e5f9d.tar.xz
rancid-d4328c26712de36c951624055f06d158e79e5f9d.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 5acae2e..fb8e6ef 100644
--- a/bin/control_rancid.in
+++ b/bin/control_rancid.in
@@ -397,7 +397,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