diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-08-28 20:38:30 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-08-30 08:47:21 -0600 |
commit | 79e3b8941d6b2bf87b9c092ff305d88382d91d44 (patch) | |
tree | 8e4cc0d04e49e5a2bfc60c7dfd11434c05b13242 /updater/versions.go | |
parent | version: bump (diff) | |
download | wireguard-windows-79e3b8941d6b2bf87b9c092ff305d88382d91d44.tar.xz wireguard-windows-79e3b8941d6b2bf87b9c092ff305d88382d91d44.zip |
version: use ProductName and ProductVersion as strings
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r-- | updater/versions.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/updater/versions.go b/updater/versions.go index 6ff73391..7292ce7e 100644 --- a/updater/versions.go +++ b/updater/versions.go @@ -17,7 +17,8 @@ import ( func versionNewerThanUs(candidate string) (bool, error) { candidateParts := strings.Split(candidate, ".") - ourParts := strings.Split(version.RunningVersion(), ".") + _, ver := version.RunningNameVersion() + ourParts := strings.Split(ver, ".") if len(candidateParts) == 0 || len(ourParts) == 0 { return false, errors.New("Empty version") } |