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:
parent
e0fa65f7bd
commit
d4db8540c0
@ -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"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user