From a6036953db9be2210acbed0882cf62c594b3a168 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 24 Sep 2001 15:55:05 -0500 Subject: [svn-r4472] Purpose: Refix Description: Changed if test -d $1; then : else to if test ! -d $1; then since "test ! -d" should work on all platforms and is a much cleaner solution than the original. Platforms tested: Linux --- bin/mkdirs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/mkdirs b/bin/mkdirs index 685c7c0..5590718 100755 --- a/bin/mkdirs +++ b/bin/mkdirs @@ -16,9 +16,7 @@ chmodprog="${CHMODPROG-chmod}" mkdirprog="${MKDIRPROG-mkdir}" make_dir () { - if test -d $1; then - : - else + if test ! -d $1; then make_dir `echo $1 | sed -e 's#/[^/]*$##'` $mkdirprog $1 $chmodprog 755 $1 -- cgit v0.12