summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2001-09-24 20:55:05 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2001-09-24 20:55:05 (GMT)
commita6036953db9be2210acbed0882cf62c594b3a168 (patch)
tree89b773e2f3a86101ac035928a3a92c796dfb66e8
parent0a8e7a6357d8dc6c174001e6ad4154d5b433efe6 (diff)
downloadhdf5-a6036953db9be2210acbed0882cf62c594b3a168.zip
hdf5-a6036953db9be2210acbed0882cf62c594b3a168.tar.gz
hdf5-a6036953db9be2210acbed0882cf62c594b3a168.tar.bz2
[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
-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