From 338e3fbf24cd1e85165e5a6d48002bc7507401aa Mon Sep 17 00:00:00 2001 From: Juan Carlos Date: Tue, 10 Sep 2019 02:05:15 -0500 Subject: [PATCH] Fix install script on Windows (#626) `adjust_format()` should use OS and not ARCH. In Windows, `$OS` will be calculated to be `"windows"` while `$ARCH` will be `"386"` or `"amd64"` (most of the time). `$ARCH` will surely never be `"windows"`. --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index dc993a8a4559..ab360f15b953 100644 --- a/install.sh +++ b/install.sh @@ -97,8 +97,8 @@ tag_to_version() { VERSION=${TAG#v} } adjust_format() { - # change format (tar.gz or zip) based on ARCH - case ${ARCH} in + # change format (tar.gz or zip) based on OS + case ${OS} in windows) FORMAT=zip ;; esac true