Files
debian-cis/hooks/shellcheck.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
155 B
Bash
Executable File

#!/bin/bash
for script in "$@"; do
/usr/bin/shellcheck --exclude=SC2317 --color=always --shell=bash -x --source-path=SCRIPTDIR "$script"
done
exit 0