diff --git a/internal/templates/hook.tmpl b/internal/templates/hook.tmpl index 0d45b4c3..2698b41a 100644 --- a/internal/templates/hook.tmpl +++ b/internal/templates/hook.tmpl @@ -34,7 +34,7 @@ call_lefthook() then "$dir/node_modules/@evilmartians/lefthook-installer/bin/lefthook_${osArch}_${cpuArch}/lefthook{{.Extension}}" "$@" {{ $extension := .Extension }} - {{- range .Roots}} + {{- range .Roots -}} elif test -f "$dir/{{.}}/node_modules/lefthook/bin/index.js" then "$dir/{{.}}/node_modules/lefthook/bin/index.js" "$@"