From f99bcd2a0117b4022c5059391f7f5cd37659dd17 Mon Sep 17 00:00:00 2001 From: Niklas Mollenhauer Date: Thu, 11 Jul 2024 10:10:02 +0200 Subject: [PATCH] fix: add missing sub directory in hook template (#768) --- internal/templates/hook.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}}" "$@"