Skip to content

Commit 338e3fb

Browse files
Rulukjirfag
authored andcommitted
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"`.
1 parent 6163a8a commit 338e3fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ tag_to_version() {
9797
VERSION=${TAG#v}
9898
}
9999
adjust_format() {
100-
# change format (tar.gz or zip) based on ARCH
101-
case ${ARCH} in
100+
# change format (tar.gz or zip) based on OS
101+
case ${OS} in
102102
windows) FORMAT=zip ;;
103103
esac
104104
true

0 commit comments

Comments
 (0)