From 7f93b4a5d29a435ed080fe391ef23cec9ec132e2 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Fri, 21 Mar 2008 05:27:06 +0000 Subject: [PATCH] replaced non-portable "uname -o" Cygwin check with portable way of doing same thing. Closes #1735710. Thanks to Ivan Vilata i Balaguer. --- releasetools/install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/releasetools/install.sh b/releasetools/install.sh index 48652a322..792e0968e 100755 --- a/releasetools/install.sh +++ b/releasetools/install.sh @@ -80,7 +80,11 @@ else fi fi -osName=$(uname -o) +osName="Unidentified" +if uname -s | grep -qi "cygwin"; then + osName="Cygwin" +fi + classPathSeparator=":" if [ "$osName" = "Cygwin" ]; then thisJavaXmlCatalog=$(cygpath -m $thisXmlCatalog) -- 2.40.0