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-02-13 14:50:29 -0600
commit61440bb3f41928e7aea22bf44bd44f590d01213c (patch)
treefac44605db1f4675aa9c83366c1bf4a0c7fb95e2
parent5e3faeabb9a088ebca9681743f51d39d2c8d39a1 (diff)
downloadrancid-61440bb3f41928e7aea22bf44bd44f590d01213c.zip
rancid-61440bb3f41928e7aea22bf44bd44f590d01213c.tar.gz
rancid-61440bb3f41928e7aea22bf44bd44f590d01213c.tar.xz
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 d339d66..8cd7cc4 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