Skip to content

Commit

Permalink
fix: Do not npx download '@evilmartians/lefthook' twice
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperupcall committed Jul 11, 2023
1 parent 3a5e2f7 commit 0aefbbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/templates/hook.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ call_lefthook()
elif pnpm lefthook -h >/dev/null 2>&1
then
pnpm lefthook "$@"
elif npx @evilmartians/lefthook -h >/dev/null 2>&1
elif command -v npx >/dev/null 2>&1
then
npx @evilmartians/lefthook "$@"
else
Expand Down

0 comments on commit 0aefbbf

Please sign in to comment.