]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Cygwin [ test ] is too stupid to do [ -f "$src.exe" ] && [ ! -f "$src" ]
authorMartin Kraemer <martin@apache.org>
Tue, 12 Jun 2001 10:24:53 +0000 (10:24 +0000)
committerMartin Kraemer <martin@apache.org>
Tue, 12 Jun 2001 10:24:53 +0000 (10:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@89350 13f79535-47bb-0310-9956-ffa450edef68

src/helpers/install.sh

index 74e63a0c7b3e4a15fc205785678858b0803d0e07..dafc26e9cecf2692ee2b756c8a0649840b78bb68 100755 (executable)
@@ -89,8 +89,12 @@ fi
 
 #  Check if we need to add an executable extension (such as ".exe") 
 #  on specific OS to src and dst
-if [ -f "$src.exe" ] && [ ! -f "$src" ]; then
-  ext=".exe"
+if [ -f "$src.exe" ]; then
+  if [ -f "$src" ]; then
+    : # Cygwin [ test ] is too stupid to do [ -f "$src.exe" ] && [ ! -f "$src" ]
+  else
+    ext=".exe"
+  fi
 fi
 src="$src$ext"
 dst="$dst$ext"