diff options
author | Gerald Carter <jerry@samba.org> | 2003-10-06 19:24:39 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-10-06 19:24:39 +0000 |
commit | 03e7b224ec97f9a1da1ee818d05b9eadd7cf6de8 (patch) | |
tree | 69330699614dfb6608273b8a0e110ed5e41a8b06 /source3/script/installdirs.sh | |
parent | 0c4547ec27f5277b37a9cf0fc133f029c1b5e3b1 (diff) | |
download | samba-03e7b224ec97f9a1da1ee818d05b9eadd7cf6de8.tar.gz samba-03e7b224ec97f9a1da1ee818d05b9eadd7cf6de8.tar.bz2 samba-03e7b224ec97f9a1da1ee818d05b9eadd7cf6de8.zip |
cosmetic fix when DESTDIR=/ (default)
(This used to be commit cf6ac7995adc8ac116fd8f678ab06d0f91b4fe94)
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 |