From: Martin Kraemer Date: Tue, 12 Jun 2001 10:24:53 +0000 (+0000) Subject: Cygwin [ test ] is too stupid to do [ -f "$src.exe" ] && [ ! -f "$src" ] X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47b432408ecc9e2f7197348b9f0042c1c8926fb3;p=thirdparty%2Fapache%2Fhttpd.git 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 --- 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"