"no more rows" isn't an ERROR
[freeradius.git] / install-sh
index 505e6dc..a212b31 100755 (executable)
@@ -120,7 +120,7 @@ if [ x"$dir_arg" != x ]; then
                instcmd=:
                chmodcmd=""
        else
-               instcmd="mkdir -p"
+               instcmd=mkdir
        fi
 else
 
@@ -192,7 +192,7 @@ fi
 
 if [ x"$dir_arg" != x ]
 then
-       $doit $instcmd $dst &&
+       ([ -d $dst ] || $doit $instcmd $dst) &&
 
        if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
        if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&