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"`.
This commit is contained in:
Juan Carlos 2019-09-10 02:05:15 -05:00 committed by Isaev Denis
parent 6163a8a790
commit 338e3fbf24

View File

@ -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