From 97c27de91940cac138eba819ecfc0a10709564cf Mon Sep 17 00:00:00 2001 From: Matthew John Date: Mon, 10 Jun 2024 05:12:08 +0100 Subject: [PATCH] fix: Update '--latest' flag handling to respect '--product' flag. Use InstallLatestProductVersion, passing in product and handled returned error --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index eee73fa4..7b32e28b 100644 --- a/main.go +++ b/main.go @@ -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)