Skip to content

Commit

Permalink
Fix install script on Windows (#626)
Browse files Browse the repository at this point in the history
`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"`.
  • Loading branch information
Ruluk authored and jirfag committed Sep 10, 2019
1 parent 6163a8a commit 338e3fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.sh
Expand Up @@ -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
Expand Down

0 comments on commit 338e3fb

Please sign in to comment.