From 47b432408ecc9e2f7197348b9f0042c1c8926fb3 Mon Sep 17 00:00:00 2001 From: Martin Kraemer Date: Tue, 12 Jun 2001 10:24:53 +0000 Subject: [PATCH] Cygwin [ test ] is too stupid to do [ -f "$src.exe" ] && [ ! -f "$src" ] 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 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/helpers/install.sh b/src/helpers/install.sh index 74e63a0c7b3..dafc26e9cec 100755 --- a/src/helpers/install.sh +++ b/src/helpers/install.sh @@ -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" -- 2.47.2