From: Michael Smith Date: Fri, 21 Mar 2008 05:27:06 +0000 (+0000) Subject: replaced non-portable "uname -o" Cygwin check with portable way of X-Git-Tag: release/1.79.1~6^2~1399 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c76cf627ef85e1985aaa2f653960cc1f9fbf3158;p=docbook-dsssl replaced non-portable "uname -o" Cygwin check with portable way of doing same thing. Closes #1735710. Thanks to Ivan Vilata i Balaguer. --- 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)