Skip to content

Commit

Permalink
Remove pre-release check from opm
Browse files Browse the repository at this point in the history
  • Loading branch information
shanedell committed Jan 26, 2024
1 parent fd52d39 commit b3d8e23
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions pkg/download/opm.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,6 @@ func OpmScript(osName string, version string) error {
"/",
)

if utils.BundleData.PreRelease {
versionSplit := strings.Split(version, ".")
downloadVersion := strings.Join(versionSplit[0:2], ".")
downloadURL = strings.Join(
[]string{
utils.RhcosPreBaseURL,
fmt.Sprintf("latest-%s", downloadVersion), filename,
},
"/",
)
}

outputPath := filepath.Join(utils.BundleDirs.Clients, filename)

if err := utils.DownloadFile(downloadURL, outputPath); err != nil {
Expand Down

0 comments on commit b3d8e23

Please sign in to comment.