summaryrefslogtreecommitdiff
path: root/tools/binary-repo-lib.sh
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-02-05 16:36:53 +0100
committerEugene Burmako <xeno.by@gmail.com>2012-02-05 16:37:49 +0100
commita364a7f3c4e296442e5447e50e6c714fc59d2723 (patch)
tree52eac49e2ce4fe654ca88e17f0d1edff39bf60f3 /tools/binary-repo-lib.sh
parent671f463c30cfa12e6a9498efdf857c5adddd2465 (diff)
downloadscala-a364a7f3c4e296442e5447e50e6c714fc59d2723.tar.gz
scala-a364a7f3c4e296442e5447e50e6c714fc59d2723.tar.bz2
scala-a364a7f3c4e296442e5447e50e6c714fc59d2723.zip
Fixes OSTYPE check for Cygwin
Diffstat (limited to 'tools/binary-repo-lib.sh')
-rwxr-xr-xtools/binary-repo-lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/binary-repo-lib.sh b/tools/binary-repo-lib.sh
index f5d6043e37..4c5497e803 100755
--- a/tools/binary-repo-lib.sh
+++ b/tools/binary-repo-lib.sh
@@ -51,7 +51,7 @@ curlDownload() {
checkCurl
local jar=$1
local url=$2
- if [[ "$OSTYPE" == *Cygwin* ]]; then
+ if [[ "$OSTYPE" == *Cygwin* || "$OSTYPE" == *cygwin* ]]; then
jar=$(cygpath -m $1)
fi
http_code=$(curl --write-out '%{http_code}' --silent --fail --output "$jar" "$url")