aboutsummaryrefslogtreecommitdiffstats
path: root/clean_perl
diff options
context:
space:
mode:
authorAnssi Hannula <anssi@mageia.org>2012-03-16 17:24:16 +0000
committerAnssi Hannula <anssi@mageia.org>2012-03-16 17:24:16 +0000
commit980194b399beed9bef5ebbe81f77a9f16171bcee (patch)
treeb2b681a4f488f9b738ef9ec6fe4888933cdcea28 /clean_perl
parentfb65965bf101cfb5cc3e8aebdfb620f91fbe8826 (diff)
downloadspec-helper-980194b399beed9bef5ebbe81f77a9f16171bcee.tar
spec-helper-980194b399beed9bef5ebbe81f77a9f16171bcee.tar.gz
spec-helper-980194b399beed9bef5ebbe81f77a9f16171bcee.tar.bz2
spec-helper-980194b399beed9bef5ebbe81f77a9f16171bcee.tar.xz
spec-helper-980194b399beed9bef5ebbe81f77a9f16171bcee.zip
clean_perl: use -empty instead of silencing failing directory deletion attempts
Diffstat (limited to 'clean_perl')
-rwxr-xr-xclean_perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/clean_perl b/clean_perl
index eca5b63..11b0417 100755
--- a/clean_perl
+++ b/clean_perl
@@ -17,4 +17,4 @@ for i in $(find $d -name "*.bs"); do
fi
done
-find $d -depth -type d -exec rmdir {} 2>/dev/null \;
+find $d -depth -type d -empty -exec rmdir {} \;