diff options
Diffstat (limited to 'source3/script/installdirs.sh')
-rwxr-xr-x | source3/script/installdirs.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/script/installdirs.sh b/source3/script/installdirs.sh index 9557b86d3b..1db46b82ff 100755 --- a/source3/script/installdirs.sh +++ b/source3/script/installdirs.sh @@ -1,11 +1,13 @@ #!/bin/sh while ( test -n "$1" ); do - if [ ! -d $1 ]; then - mkdir -p $1 + + DIRNAME=`echo $1 | sed 's/\/\//\//g'` + if [ ! -d $DIRNAME ]; then + mkdir -p $DIRNAME fi - if [ ! -d $1 ]; then + if [ ! -d $DIRNAME ]; then echo Failed to make directory $1 exit 1 fi |