Files
debian-cis/hooks/shfmt.sh
damcav35 c9f9137e59 feat: add some precommit (#274)
- ensure correct formatting with shfmt
- ensure correct syntax with shellcheck

Co-authored-by: damien cavagnini <damien.cavagnini@corp.ovh.com>
2025-07-22 11:14:41 +02:00

8 lines
80 B
Bash
Executable File

#!/bin/bash
for script in "$@"; do
shfmt -l -i 4 -w "$script"
done
exit 0