Only remove attribute storage files if generated/attributes/ exists, else skip the slow find.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22951 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2007-11-19 00:30:00 +00:00
parent e0fa65f7bd
commit d4db8540c0
1 changed files with 3 additions and 1 deletions

View File

@ -61,7 +61,9 @@ fi
attrrmrf() attrrmrf()
{ {
test -e "$1" || return test -e "$1" || return
if [ -d "$outputDir/attributes" ]; then
find "$1" -print0 | xargs -0 stat -c %i | awk "{ print \"$outputDir/attributes/\" \$1 }" | xargs rm -rf find "$1" -print0 | xargs -0 stat -c %i | awk "{ print \"$outputDir/attributes/\" \$1 }" | xargs rm -rf
fi
rm -rf "$1" rm -rf "$1"
} }