From 61440bb3f41928e7aea22bf44bd44f590d01213c Mon Sep 17 00:00:00 2001 From: "Jeffrey C. Ollie" Date: Fri, 30 Mar 2007 23:54:21 -0500 Subject: Don't delete .cvsignore and .gitignore files. --- bin/control_rancid.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit