summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mkdirs4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/mkdirs b/bin/mkdirs
index 3d689ad..685c7c0 100755
--- a/bin/mkdirs
+++ b/bin/mkdirs
@@ -16,7 +16,9 @@ chmodprog="${CHMODPROG-chmod}"
mkdirprog="${MKDIRPROG-mkdir}"
make_dir () {
- if ! test -d $1; then
+ if test -d $1; then
+ :
+ else
make_dir `echo $1 | sed -e 's#/[^/]*$##'`
$mkdirprog $1
$chmodprog 755 $1