Skip to content

Commit

Permalink
fix!: don't auto-install lefthook with npx if not found (#602)
Browse files Browse the repository at this point in the history
Co-authored-by: Valentin Kiselev <[email protected]>
  • Loading branch information
anthony-hayes and mrexox authored Oct 22, 2024
1 parent 5afb245 commit 7d38c94
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/templates/hook.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down

0 comments on commit 7d38c94

Please sign in to comment.