summaryrefslogtreecommitdiff
path: root/source/script/installdirs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source/script/installdirs.sh')
-rwxr-xr-xsource/script/installdirs.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/script/installdirs.sh b/source/script/installdirs.sh
index 9557b86d3bc..1db46b82ff2 100755
--- a/source/script/installdirs.sh
+++ b/source/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