From 0269516c7f12f348b1a5db84f1a9ddb4892ecd86 Mon Sep 17 00:00:00 2001 From: oliverpool Date: Wed, 23 Mar 2022 20:57:46 +0100 Subject: [PATCH] fix cut --- cmd/check-update/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/check-update/main.go b/cmd/check-update/main.go index 12cdce4..433f6a3 100644 --- a/cmd/check-update/main.go +++ b/cmd/check-update/main.go @@ -51,7 +51,7 @@ func run() error { after = before } tagName, _, _ := strings.Cut(after, "-") - tagName, _, _ = strings.Cut(after, "~") + tagName, _, _ = strings.Cut(tagName, "~") log.Println("latest version:", tagName)