I noticed this because in the hardware repos I am using a custom static.sh based on the default template.
The shellcheck line in the static.sh template is currently:
exe shellcheck -e SC2087 .ci/*.sh
I have other shell scripts in the hardware repos so I started using something like this to evaluate all scripts in the repo:
exe find . -type f -name '*.sh' -exec shellcheck -e SC2087 {} \;
You could also exclude specific directories:
exe find . \( -path ./dir1 -o -path ./dir2 \) -prune -o -type f -name '*.sh' -exec shellcheck -e SC2087 {} \;
Not sure if this is too esoteric or if other repos would benefit for this, but figured I'd drop it here for discussion.
I noticed this because in the hardware repos I am using a custom
static.shbased on the default template.The shellcheck line in the
static.shtemplate is currently:I have other shell scripts in the hardware repos so I started using something like this to evaluate all scripts in the repo:
You could also exclude specific directories:
Not sure if this is too esoteric or if other repos would benefit for this, but figured I'd drop it here for discussion.