From 097d6864f7696ba95be59bd309bd80cadb2c5413 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Mon, 16 Mar 2009 23:21:15 +0000 Subject: [PATCH] Ignore the .svn directories in the config directories. --- tests/common/config.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/common/config.sh b/tests/common/config.sh index 81c28c87..1b958ea0 100644 --- a/tests/common/config.sh +++ b/tests/common/config.sh @@ -7,7 +7,7 @@ set -e save_config () { [ ! -d tmp ] && mkdir tmp - find config -depth -type f | sed -e 's/config\///' | + find config -depth -path "*/.svn/*" -prune -o -type f -print | sed -e 's/config\///' | while read file do mkdir -p "tmp/$(dirname "$file")" @@ -18,7 +18,7 @@ save_config () # Copy the config files from config to the system change_config () { - find config -depth -type f | sed -e 's/config\///' | + find config -depth -path "*/.svn/*" -prune -o -type f -print | sed -e 's/config\///' | while read file do cp -f "config/$file" "/$file" @@ -29,7 +29,7 @@ change_config () # The config files must be saved before with save_config (). restore_config () { - find config -depth -type f | sed -e 's/config\///' | + find config -depth -path "*/.svn/*" -prune -o -type f -print | sed -e 's/config\///' | while read file do [ -f "tmp/$file" ] && \