summaryrefslogtreecommitdiff
blob: 1404e23181163bac65d7d1efb40caaf37adad8f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- install-sh	2007-10-23 12:10:41 +0100
+++ install-sh	2007-10-23 12:12:06 +0100
@@ -240,7 +240,7 @@
   fi
 
   if test -n "$dir_arg"; then
-    $doit $instcmd "$dst" \
+    { test -d "$dst" || $doit $instcmd "$dst"; } \
       && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
       && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
       && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \