diff --git a/cmd/templates/hook.tmpl b/cmd/templates/hook.tmpl index 67091462..7b41f423 100644 --- a/cmd/templates/hook.tmpl +++ b/cmd/templates/hook.tmpl @@ -21,12 +21,12 @@ call_lefthook() elif bundle exec lefthook -h >/dev/null 2>&1 then bundle exec lefthook $@ - elif npx @arkweid/lefthook -h >/dev/null 2>&1 - then - npx @arkweid/lefthook $@ elif yarn lefthook -h >/dev/null 2>&1 then yarn lefthook $@ + elif npx @arkweid/lefthook -h >/dev/null 2>&1 + then + npx @arkweid/lefthook $@ else echo "Can't find lefthook in PATH" fi