summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/mkdirs4
1 files changed, 1 insertions, 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