Skip to content

Commit

Permalink
Fix update command asset downloading
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoConstantine committed Jul 16, 2024
1 parent 59c8ff2 commit 7090b77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/commands/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func updateCLI(iostream *iostreams.IOStreams) error {
// Determine the asset to download based on the current OS and architecture
assetURL := ""
for _, asset := range release.Assets {
if asset.Name == fmt.Sprintf("mycli_%s_%s", runtime.GOOS, runtime.GOARCH) {
if strings.Contains(strings.ToLower(asset.Name), fmt.Sprintf("%s_%s", runtime.GOOS, runtime.GOARCH)) {
assetURL = asset.BrowserDownloadURL
break
}
Expand Down

0 comments on commit 7090b77

Please sign in to comment.