From 9f58eebfe16c1b45c352d93b601b913ddaf79384 Mon Sep 17 00:00:00 2001 From: Pontus N Date: Thu, 13 Oct 2022 15:17:18 +0200 Subject: [PATCH] Fix zero arguments error --- cmd/headscale/cli/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/headscale/cli/root.go b/cmd/headscale/cli/root.go index bd52620..52a3f1b 100644 --- a/cmd/headscale/cli/root.go +++ b/cmd/headscale/cli/root.go @@ -15,7 +15,7 @@ import ( var cfgFile string = "" func init() { - if len(os.Args) > 1 && os.Args[1] == "version" || os.Args[1] == "mockoidc" { + if len(os.Args) > 1 && (os.Args[1] == "version" || os.Args[1] == "mockoidc") { return }