From 3e053ed1890d6b456a23f5f5fbaa4261a61efc8e Mon Sep 17 00:00:00 2001 From: linsui <36977733+linsui@users.noreply.github.com> Date: Mon, 5 Jun 2023 05:37:03 +0000 Subject: [PATCH] Fix args index num The codes should start from the third arg. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 57792db..566d30e 100644 --- a/main.go +++ b/main.go @@ -238,7 +238,7 @@ func setActionOutput(name string, content string) { func main() { var err error if len(os.Args) >= 3 { - err = local(os.Args[1], os.Args[2], os.Args[2:]) + err = local(os.Args[1], os.Args[2], os.Args[3:]) } else { err = release("Dreamacro/maxmind-geoip", "sagernet/sing-geoip") }