Skip to content

Commit

Permalink
Fix #116 - choosenim update self throws HttpRequest Error (#166)
Browse files Browse the repository at this point in the history
* Add download file extension for windows

* Add download exe file extension for windows

* used addFileExt(ExeExt)
  • Loading branch information
iranika authored and dom96 committed Jan 26, 2020
1 parent 0a6a793 commit 0e7b2c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/choosenim.nim
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ proc updateSelf(params: CliParams) =

# https://stackoverflow.com/a/9163044/492186
let tag = "v" & $version
let filename = "choosenim-" & $version & "_" & hostOS & "_" & hostCPU
let filename = "choosenim-" & $version & "_" & hostOS & "_" & hostCPU.addFileExt(ExeExt)
let url = "https://github.com/dom96/choosenim/releases/download/$1/$2" % [
tag, filename
]
Expand Down

0 comments on commit 0e7b2c1

Please sign in to comment.