Upgrade lib should use same criteria for beta check as main

This commit is contained in:
Jakob Borg 2015-10-22 08:28:35 +02:00
parent 7ed3b3dd3a
commit 0a022d38fa

View File

@ -89,7 +89,7 @@ func SelectLatestRelease(version string, rels []Release) (Release, error) {
sort.Sort(SortByRelease(rels))
// Check for a beta build
beta := strings.Contains(version, "-beta")
beta := strings.Contains(version, "-")
for _, rel := range rels {
if rel.Prerelease && !beta {