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

View File

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