From 6334b3dd06d76b4b139815f96c7d96cce8ba96fe Mon Sep 17 00:00:00 2001 From: Akizon77 Date: Sat, 3 May 2025 21:21:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BD=93=E5=89=8D=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E6=B3=A8=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/main.go b/main.go index 9d46e0e..8f6c51f 100644 --- a/main.go +++ b/main.go @@ -7,7 +7,6 @@ import ( "io" "log" "net/http" - "os" "strings" "time" @@ -18,18 +17,10 @@ import ( ) var ( - CurrentVersion = getVersionFromEnv() + CurrentVersion string repo = "komari-monitor/komari-agent" ) -func getVersionFromEnv() string { - version := "v0.0.2" - if v := os.Getenv("GITHUB_RELEASE_VERSION"); v != "" { - version = v - } - return version -} - func main() { log.Printf("Komari Agent %s\n", CurrentVersion) localConfig, err := config.LoadConfig()