mirror of
https://github.com/ovh/debian-cis.git
synced 2024-11-22 13:37:02 +01:00
FIX: remove "exernal-sources" option when running shellcheck
This option caused some checks to be ignored
This commit is contained in:
parent
507eadc3cb
commit
3ff3bb209f
@ -14,7 +14,7 @@ fi
|
|||||||
for f in $files; do
|
for f in $files; do
|
||||||
if head "$f" | grep -qE "^# run-shellcheck$"; then
|
if head "$f" | grep -qE "^# run-shellcheck$"; then
|
||||||
printf "\e[1;36mRunning shellcheck on: %s \e[0m\n" "$f"
|
printf "\e[1;36mRunning shellcheck on: %s \e[0m\n" "$f"
|
||||||
if ! /usr/bin/shellcheck --color=always --external-sources --shell=bash "$f"; then
|
if ! /usr/bin/shellcheck --color=always --shell=bash "$f"; then
|
||||||
retval=$((retval + 1))
|
retval=$((retval + 1))
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user