mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 19:08:58 +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))
|
||||
// Check for a beta build
|
||||
beta := strings.Contains(version, "-beta")
|
||||
beta := strings.Contains(version, "-")
|
||||
|
||||
for _, rel := range rels {
|
||||
if rel.Prerelease && !beta {
|
||||
|
Loading…
Reference in New Issue
Block a user