From 87713c605334da837cac8367fa3e59c95153df88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luka=20Govedi=C4=8D?= Date: Fri, 8 Nov 2024 14:53:36 -0500 Subject: [PATCH] [CI/Build] Ignore .gitignored files for shellcheck (#10162) Signed-off-by: luka --- tools/shellcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/shellcheck.sh b/tools/shellcheck.sh index e850742a..0bb6fd2e 100755 --- a/tools/shellcheck.sh +++ b/tools/shellcheck.sh @@ -18,4 +18,4 @@ if ! [ -x "$(command -v shellcheck)" ]; then fi # TODO - fix warnings in .buildkite/run-amd-test.sh -find . -name "*.sh" -not -path "./.deps/*" -not -path "./.buildkite/run-amd-test.sh" -exec shellcheck {} + +find . -name "*.sh" -not -path "./.buildkite/run-amd-test.sh" -exec sh -c 'git check-ignore -q $1 || shellcheck $1' _ {} \;