r14168: Fix Coverity #219. I think this is a false coverity
[Samba/bb.git] / source3 / script / installdirs.sh
blob062b34b8c696ddd10573deaf45e0eba5f26c6503
1 #!/bin/sh
3 INSTALLPERMS=$1
4 DESTDIR=`echo $2 | sed 's/\/\//\//g'`
5 shift
6 shift
8 for dir in $@; do
9 DIRNAME=`echo $dir | sed 's/\/\//\//g'`
10 if [ ! -d $DESTDIR/$DIRNAME ]; then
11 mkdir -m $INSTALLPERMS -p $DESTDIR/$DIRNAME
14 if [ ! -d $DESTDIR/$DIRNAME ]; then
15 echo "Failed to make directory $DESTDIR/$DIRNAME "
16 exit 1
18 done