mirror of
https://github.com/ovh/debian-cis.git
synced 2025-07-31 12:36:34 +02:00
15 lines
261 B
Bash
Executable File
15 lines
261 B
Bash
Executable File
#!/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
|