From bc2ed40a4c6b0d9a09e4d2a3e3528895e89cba1e Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 23 Oct 2019 12:46:49 -0400 Subject: [PATCH] gitsrht-shell: fix error in os.Args check --- gitsrht-shell/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitsrht-shell/main.go b/gitsrht-shell/main.go index 89493f7..a398ffa 100644 --- a/gitsrht-shell/main.go +++ b/gitsrht-shell/main.go @@ -51,7 +51,7 @@ func main() { logger = log.New(logf, "", log.LstdFlags) } - if len(os.Args) < 2 { + if len(os.Args) < 3 { logger.Fatalf("Expected two arguments from SSH") } logger.Printf("os.Args: %v", os.Args) -- 2.38.4