gruntwork-io / pre-commit

A collection of pre-commit hooks used by Gruntwork tools
https://gruntwork.io/
Apache License 2.0
494 stars 157 forks source link

shellcheck support for spaces in filenames #33

Open acdha opened 4 years ago

acdha commented 4 years ago

The way shellcheck.sh works causes it to fail when a file has a space in the filename. $files should probably be an array which each element is appended to:

https://github.com/gruntwork-io/pre-commit/blob/master/hooks/shellcheck.sh#L29