From eed03d644ff62445f49a2a196b9b9d154c8056a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Sun, 23 Jun 2024 03:19:13 +0800 Subject: [PATCH] fix: test --- pkg/tools/tools.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/tools/tools.go b/pkg/tools/tools.go index 423ded68..3a336f30 100644 --- a/pkg/tools/tools.go +++ b/pkg/tools/tools.go @@ -281,7 +281,7 @@ func GetPanelVersion(version string) (PanelInfo, error) { } if isChina { - output, err = shell.Execf(`curl -sSL "https://git.haozi.net/api/v4/projects/opensource%2Fpanel/releases/` + version + `"`) + output, err = shell.Execf(`curl -sSL "https://git.haozi.net/api/v4/projects/opensource%%2Fpanel/releases/` + version + `"`) } else { output, err = shell.Execf(`curl -sSL "https://api.github.com/repos/TheTNB/panel/releases/tags/` + version + `"`) }