Skip to content

Commit

Permalink
fix: add missing sub directory in hook template (#768)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikeee authored Jul 11, 2024
1 parent ef79a53 commit f99bcd2
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 @@ -47,7 +47,7 @@ call_lefthook()
{{- range .Roots -}}
elif test -f "$dir/{{.}}/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook{{$extension}}"
then
"$dir/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook{{$extension}}" "$@"
"$dir/{{.}}/node_modules/lefthook-${osArch}-${cpuArch}/bin/lefthook{{$extension}}" "$@"
elif test -f "$dir/{{.}}/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook{{$extension}}"
then
"$dir/{{.}}/node_modules/@evilmartians/lefthook/bin/lefthook-${osArch}-${cpuArch}/lefthook{{$extension}}" "$@"
Expand Down

0 comments on commit f99bcd2

Please sign in to comment.