diff options
author | Jeffrey C. Ollie <jeff@ocjtech.us> | 2007-03-30 23:54:21 -0500 |
---|---|---|
committer | Jeffrey C. Ollie <jeff@ocjtech.us> | 2007-03-30 23:54:21 -0500 |
commit | d4bfc223d130d5d2aaa053e04a92197dd802ebbb (patch) | |
tree | 426f4eace69e6df188d59e35129c8d3213c8d075 | |
parent | 370fae41474ad627f5dae216f95d9bfe165fa460 (diff) | |
download | rancid-d4bfc223d130d5d2aaa053e04a92197dd802ebbb.tar.gz rancid-d4bfc223d130d5d2aaa053e04a92197dd802ebbb.tar.xz rancid-d4bfc223d130d5d2aaa053e04a92197dd802ebbb.zip |
Don't delete .cvsignore and .gitignore files.
-rw-r--r-- | bin/control_rancid.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/control_rancid.in b/bin/control_rancid.in index 9112280..6ac42af 100644 --- a/bin/control_rancid.in +++ b/bin/control_rancid.in @@ -382,7 +382,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 |