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:
parent
6163a8a790
commit
338e3fbf24
@ -97,8 +97,8 @@ tag_to_version() {
|
|||||||
VERSION=${TAG#v}
|
VERSION=${TAG#v}
|
||||||
}
|
}
|
||||||
adjust_format() {
|
adjust_format() {
|
||||||
# change format (tar.gz or zip) based on ARCH
|
# change format (tar.gz or zip) based on OS
|
||||||
case ${ARCH} in
|
case ${OS} in
|
||||||
windows) FORMAT=zip ;;
|
windows) FORMAT=zip ;;
|
||||||
esac
|
esac
|
||||||
true
|
true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user