From f8e64aad5bce6585b77907669afb2a015eb1cca8 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Fri, 8 Nov 2019 10:25:59 -0700 Subject: [PATCH] ci/shellcheck.sh now only audits files that git knows about (#6815) --- ci/shellcheck.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/ci/shellcheck.sh b/ci/shellcheck.sh index 00d68a96a2bd97..4e7c75d2d0025d 100755 --- a/ci/shellcheck.sh +++ b/ci/shellcheck.sh @@ -6,13 +6,7 @@ set -e cd "$(dirname "$0")/.." ( set -x - find . -name "*.sh" \ - -not -regex ".*/ci/semver_bash/.*" \ - -not -regex ".*/.cargo/.*" \ - -not -regex ".*/node_modules/.*" \ - -not -regex ".*/target/.*" \ - -print0 \ - | xargs -0 \ - ci/docker-run.sh koalaman/shellcheck --color=always --external-sources --shell=bash + git ls-files -- '*.sh' ':(exclude)ci/semver_bash' \ + | xargs ci/docker-run.sh koalaman/shellcheck --color=always --external-sources --shell=bash ) echo --- ok