From: Mark Andrews Date: Sat, 6 Oct 2012 07:26:58 +0000 (+1000) Subject: remove empty directories when cleaning X-Git-Tag: v9.10.0a1~813 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=20783a3baf002a38426e732cde4e789cf5ec2532;p=thirdparty%2Fbind9.git remove empty directories when cleaning --- diff --git a/bin/tests/system/cleanall.sh b/bin/tests/system/cleanall.sh index a5fef69e209..7d25964abd7 100644 --- a/bin/tests/system/cleanall.sh +++ b/bin/tests/system/cleanall.sh @@ -35,4 +35,5 @@ status=0 for d in $SUBDIRS do test ! -f $d/clean.sh || ( cd $d && sh clean.sh ) + find $d -type d -exec rmdir '{}' \; 2> /dev/null done