From 9d6c4c51379b2561ebc72db9ba32576004604275 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Sun, 16 Oct 2022 22:23:44 +0200 Subject: [PATCH] Meta: Allow shellcheck to search sourced files in the script directory --- Meta/lint-shell-scripts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meta/lint-shell-scripts.sh b/Meta/lint-shell-scripts.sh index b7e17e5d6f3..b0fe08638f1 100755 --- a/Meta/lint-shell-scripts.sh +++ b/Meta/lint-shell-scripts.sh @@ -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