summaryrefslogtreecommitdiff
blob: 64fe20ad3f025c1b0f99566e83f80b4f12879685 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- install-sh	2006-03-25 20:04:46 +0000
+++ install-sh	2007-09-14 10:53:29 +0100
@@ -246,7 +246,7 @@
   fi
 
   if test -n "$dir_arg"; then
-    $doit $mkdircmd "$dst" \
+    { test -d "$dst" || $doit $mkdircmd "$dst"; } \
       && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
       && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
       && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \