From 8b4621aa6cba1674192ffb6e3c3e801a567f2516 Mon Sep 17 00:00:00 2001 From: feistel <6742251-feistel@users.noreply.gitlab.com> Date: Wed, 8 Sep 2021 09:54:44 +0000 Subject: refactor: add acceptargs field to executable parse logic will only run if the executable accept args. healthcheck is the only one not accepting arguments. --- cmd/gitlab-shell-authorized-keys-check/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/gitlab-shell-authorized-keys-check/main.go') diff --git a/cmd/gitlab-shell-authorized-keys-check/main.go b/cmd/gitlab-shell-authorized-keys-check/main.go index 81937a7..cda3e0b 100644 --- a/cmd/gitlab-shell-authorized-keys-check/main.go +++ b/cmd/gitlab-shell-authorized-keys-check/main.go @@ -20,7 +20,7 @@ func main() { ErrOut: os.Stderr, } - executable, err := executable.New(executable.AuthorizedKeysCheck) + executable, err := executable.New(executable.AuthorizedKeysCheck, true) if err != nil { fmt.Fprintln(readWriter.ErrOut, "Failed to determine executable, exiting") os.Exit(1) -- cgit v1.2.1