diff --git a/Makefile b/Makefile index 0b2a35374..8a8cdaa2f 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ else OS?=linux endif -VER=$(shell echo $(VERSION) | sed -e 's/^v//g' -e 's/\//_/g') +VER=$(shell echo $(VERSION) | sed -e 's/\//_/g') .PHONY: check diff --git a/software/sofware.go b/software/sofware.go index 9329297f4..ab37ebd90 100644 --- a/software/sofware.go +++ b/software/sofware.go @@ -65,7 +65,7 @@ func (mgr *Manager) GetReleases(ctx context.Context, version string) (Releases, for _, release := range releases { switch { case release.Prerelease: - case semver.Compare(version, release.TagName) > 0: + case semver.Compare(version, release.TagName) >= 0: default: r = append(r, release) }