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-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f93b4a5d29a435ed080fe391ef23cec9ec132e2;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)