From 7d38c9499dfc92e10266a03f12d759dd5659f84b Mon Sep 17 00:00:00 2001 From: Anthony Hayes Date: Tue, 22 Oct 2024 04:37:14 -0400 Subject: [PATCH] fix!: don't auto-install lefthook with npx if not found (#602) Co-authored-by: Valentin Kiselev --- internal/templates/hook.tmpl | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/templates/hook.tmpl b/internal/templates/hook.tmpl index 676edaf2..a3bc1f3a 100644 --- a/internal/templates/hook.tmpl +++ b/internal/templates/hook.tmpl @@ -73,9 +73,6 @@ call_lefthook() elif command -v mint >/dev/null 2>&1 then mint run csjones/lefthook-plugin "$@" - elif command -v npx >/dev/null 2>&1 - then - npx lefthook "$@" else echo "Can't find lefthook in PATH" {{- if .AssertLefthookInstalled}}