summaryrefslogtreecommitdiff
path: root/Meta/lint-shell-scripts.sh
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-10-16 22:23:44 +0200
committerLinus Groh <mail@linusgroh.de>2022-10-16 23:39:45 +0200
commit9d6c4c51379b2561ebc72db9ba32576004604275 (patch)
tree6212bf12fdcd10e6d925af9f6db421cfdedb9fb9 /Meta/lint-shell-scripts.sh
parent032ef1b461ba17018a02f57ee6a188e18d19969f (diff)
downloadserenity-9d6c4c51379b2561ebc72db9ba32576004604275.zip
Meta: Allow shellcheck to search sourced files in the script directory
Diffstat (limited to 'Meta/lint-shell-scripts.sh')
-rwxr-xr-xMeta/lint-shell-scripts.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Meta/lint-shell-scripts.sh b/Meta/lint-shell-scripts.sh
index b7e17e5d6f..b0fe08638f 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