From ef96bfa2a6452c4ea6046abca033b69f2751757f Mon Sep 17 00:00:00 2001 From: Abroskin Alexander Date: Fri, 28 Jun 2019 16:47:48 +0300 Subject: [PATCH] Update add.go --- cmd/add.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/add.go b/cmd/add.go index a8d7de08..08649c97 100644 --- a/cmd/add.go +++ b/cmd/add.go @@ -93,7 +93,7 @@ then func autoInstall(hookName string, fs afero.Fs) string { if hookName == checkSumHook { return "# lefthook_version: " + configChecksum(fs) + "\n" + - `if ! type lefthook >/dev/null + `if ! type lefthook >/dev/null 2>&1 then exec npx lefthook install else