Meta: Allow shellcheck to search sourced files in the script directory

This commit is contained in:
Tim Schumacher 2022-10-16 22:23:44 +02:00 committed by Linus Groh
parent 032ef1b461
commit 9d6c4c5137
Notes: sideshowbarker 2024-07-17 05:40:20 +09:00

View file

@ -36,7 +36,7 @@ if (( ${#files[@]} )); then
exit 1
fi
shellcheck "${files[@]}"
shellcheck --source-path=SCRIPTDIR "${files[@]}"
for file in "${files[@]}"; do
if (< "$file" grep -qE "grep [^|);]*-[^- ]*P"); then