If "install-sh" is asked to do an installation, it helpfully
creates the destination directory for you. Then, if the install
target is a directory, it tries to create the directory. Which
was just created. And then it fails with an error.
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 &&