Skip to content

Commit

Permalink
Merge pull request #855 from Donran/main
Browse files Browse the repository at this point in the history
Fix no arguments panic
  • Loading branch information
juanfont authored Oct 13, 2022
2 parents 0048ed0 + 907aa07 commit 4dd2eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/headscale/cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 4dd2eef

Please sign in to comment.