jumanjihouse / pre-commit-hooks

git pre-commit hooks that work with http://pre-commit.com/
MIT License
114 stars 52 forks source link

shfmt hook whitespace in filename #87

Open ahousseini opened 3 years ago

ahousseini commented 3 years ago

Hi

Thanks for your work!

It seems the shfmt hook does not respect whitespaces in filename:

[RUN] shfmt -w -i 2 Test/Script Test1.sh Test/Script Test2.sh
lstat Test/Script: no such file or directory
lstat Test1.sh: no such file or directory
lstat Test/Script: no such file or directory
lstat Test2.sh: no such file or directory