summaryrefslogtreecommitdiffstats
path: root/source3/script/installdirs.sh
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-10-06 19:24:17 +0000
committerGerald Carter <jerry@samba.org>2003-10-06 19:24:17 +0000
commit629120a0a1ee0726cf6f43bf841ca042d2b0229e (patch)
treed056f6c443f968c98236e594908ab43c78cb8193 /source3/script/installdirs.sh
parent3289598de04eefc9ff87465c0f25c57ceb9e0111 (diff)
downloadsamba-629120a0a1ee0726cf6f43bf841ca042d2b0229e.tar.gz
samba-629120a0a1ee0726cf6f43bf841ca042d2b0229e.tar.xz
samba-629120a0a1ee0726cf6f43bf841ca042d2b0229e.zip
cosmetic fix when DESTDIR=/ (default)
(This used to be commit e660b5752aa129c49b0b665845de2fe4c160be00)
Diffstat (limited to 'source3/script/installdirs.sh')
-rwxr-xr-xsource3/script/installdirs.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/script/installdirs.sh b/source3/script/installdirs.sh
index 9557b86d3bc..1db46b82ff2 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