]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
remove empty directories when cleaning
authorMark Andrews <marka@isc.org>
Sat, 6 Oct 2012 07:26:58 +0000 (17:26 +1000)
committerMark Andrews <marka@isc.org>
Sat, 6 Oct 2012 07:27:38 +0000 (17:27 +1000)
bin/tests/system/cleanall.sh

index a5fef69e20980f58dad04c9dc456147d8da3700a..7d25964abd711e46a14548bf96d8806e36bb6c7f 100644 (file)
@@ -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