Skip to content

Commit

Permalink
fix: properly trim spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox committed Feb 26, 2024
1 parent d83e260 commit 7f7e837
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 @@ -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" "$@"
Expand Down

0 comments on commit 7f7e837

Please sign in to comment.