Skip to content

Commit 5bdd0d6

Browse files
authored
Merge branch 'main' into restore_skip_warmup_test
2 parents a85b82b + 03f968b commit 5bdd0d6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tools/shellcheck.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,8 @@ if ! [ -x "$(command -v shellcheck)" ]; then
1818
export PATH="$PATH:$(pwd)/shellcheck-${scversion}"
1919
fi
2020

21-
# TODO - fix warnings in .buildkite/run-amd-test.sh
22-
find . -name "*.sh" -not -path "./.buildkite/run-amd-test.sh" -print0 | xargs -0 -I {} sh -c 'git check-ignore -q "{}" || shellcheck "{}"'
21+
# Lists all files currently tracked by Git
22+
# outputs results separated by a null character
23+
# matches any filename ending with .sh
24+
# run shellcheck on every .sh file tracked by Git.
25+
git ls-files -z | grep -z '\.sh$' | xargs -0 -n 1 shellcheck

0 commit comments

Comments
 (0)