mirror of
https://github.com/ovh/debian-cis.git
synced 2025-08-04 14:21:15 +02:00
fix: shellcheck precommit
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
issues=0
|
||||
|
||||
for script in "$@"; do
|
||||
/usr/bin/shellcheck --exclude=SC2317 --color=always --shell=bash -x --source-path=SCRIPTDIR "$script"
|
||||
[ $? -eq 0 ] || issues=$(($issues + 1))
|
||||
done
|
||||
|
||||
if [ "$issues" -gt 0 ]; then
|
||||
exit 1
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
|
Reference in New Issue
Block a user