Skip to content

Commit

Permalink
fix(cmd/install_bin): Call defaultVersionFunc only when needed (if no…
Browse files Browse the repository at this point in the history
… version is provided)
  • Loading branch information
ondrejsika committed May 16, 2024
1 parent 4097a01 commit ad39ae4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/install_bin/install_bin.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,11 @@ func run(
if sourceTemlate == "" {
sourceTemlate = name
}
version := defaultVersionFunc()
version := ""
if flagVersionFunc() != "latest" {
version = flagVersionFunc()
} else {
version = defaultVersionFunc()
}
url := getUrlFunc(
urlTemplate,
Expand Down

0 comments on commit ad39ae4

Please sign in to comment.