From ccb37ef09d6d092868003d295ae86ab78b2c9dd9 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Sat, 6 Oct 2012 17:26:58 +1000 Subject: [PATCH] remove empty directories when cleaning --- bin/tests/system/cleanall.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/tests/system/cleanall.sh b/bin/tests/system/cleanall.sh index a5fef69e20..7d25964abd 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