]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
test for directory existance before calling find
authorMark Andrews <marka@isc.org>
Mon, 15 Oct 2012 23:56:06 +0000 (10:56 +1100)
committerMark Andrews <marka@isc.org>
Mon, 15 Oct 2012 23:56:42 +0000 (10:56 +1100)
bin/tests/system/cleanall.sh

index 7d25964abd711e46a14548bf96d8806e36bb6c7f..fc4c013bbe49a6d768b163bf61bac7481507a245 100644 (file)
@@ -35,5 +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
+   test -d $d && find $d -type d -exec rmdir '{}' \; 2> /dev/null
 done