aboutsummaryrefslogtreecommitdiffstats
path: root/clean_perl
diff options
context:
space:
mode:
authorAnssi Hannula <anssi@mageia.org>2012-03-16 17:24:20 +0000
committerAnssi Hannula <anssi@mageia.org>2012-03-16 17:24:20 +0000
commit23cffed736e80bd3028e03e7ad2cbf53af5f1f61 (patch)
tree39aa3f363de6b0b42f6aad7d0b123dcb2d858e84 /clean_perl
parent980194b399beed9bef5ebbe81f77a9f16171bcee (diff)
downloadspec-helper-23cffed736e80bd3028e03e7ad2cbf53af5f1f61.tar
spec-helper-23cffed736e80bd3028e03e7ad2cbf53af5f1f61.tar.gz
spec-helper-23cffed736e80bd3028e03e7ad2cbf53af5f1f61.tar.bz2
spec-helper-23cffed736e80bd3028e03e7ad2cbf53af5f1f61.tar.xz
spec-helper-23cffed736e80bd3028e03e7ad2cbf53af5f1f61.zip
clean_perl: don't try to remove empty dirs directly under /usr/lib/perl5
E.g. /usr/lib/perl5/vendor_perl of perl package itself is affected.
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 11b0417..99d0d46 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 -empty -exec rmdir {} \;
+find $d -depth -mindepth 2 -type d -empty -exec rmdir {} \;