Skip to content

Commit

Permalink
fix: Update '--latest' flag handling to respect '--product' flag.
Browse files Browse the repository at this point in the history
Use InstallLatestProductVersion, passing in product and handled returned error
  • Loading branch information
MatthewJohn committed Jun 10, 2024
1 parent e247792 commit 97c27de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func main() {
lib.ShowLatestImplicitVersion(parameters.ShowLatestStable, parameters.MirrorURL, false)
case parameters.LatestFlag:
/* latest stable version */
lib.InstallLatestVersion(parameters.DryRun, parameters.CustomBinaryPath, parameters.InstallPath, parameters.MirrorURL)
err = lib.InstallLatestProductVersion(parameters.ProductEntity, parameters.DryRun, parameters.CustomBinaryPath, parameters.InstallPath, parameters.MirrorURL)
case parameters.ShowLatestFlag:
/* show latest stable version */
lib.ShowLatestVersion(parameters.MirrorURL)
Expand Down

0 comments on commit 97c27de

Please sign in to comment.