diff --git a/internal/templates/hook.tmpl b/internal/templates/hook.tmpl index 2296d98c..676edaf2 100644 --- a/internal/templates/hook.tmpl +++ b/internal/templates/hook.tmpl @@ -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}}" "$@"