mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 15:20:56 +00:00
Upgrade lib should use same criteria for beta check as main
This commit is contained in:
parent
7ed3b3dd3a
commit
0a022d38fa
@ -89,7 +89,7 @@ func SelectLatestRelease(version string, rels []Release) (Release, error) {
|
|||||||
|
|
||||||
sort.Sort(SortByRelease(rels))
|
sort.Sort(SortByRelease(rels))
|
||||||
// Check for a beta build
|
// Check for a beta build
|
||||||
beta := strings.Contains(version, "-beta")
|
beta := strings.Contains(version, "-")
|
||||||
|
|
||||||
for _, rel := range rels {
|
for _, rel := range rels {
|
||||||
if rel.Prerelease && !beta {
|
if rel.Prerelease && !beta {
|
||||||
|
Loading…
Reference in New Issue
Block a user