From e03335522509e83fef2e2d039d7971c2df655417 Mon Sep 17 00:00:00 2001 From: Tom Moulard Date: Wed, 27 Oct 2021 10:34:05 +0200 Subject: [PATCH] fix: do not validate shell script in node-modules folder --- script/validate-shell-script.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/validate-shell-script.sh b/script/validate-shell-script.sh index befaebe59..5f785128d 100755 --- a/script/validate-shell-script.sh +++ b/script/validate-shell-script.sh @@ -12,10 +12,10 @@ then # The shellcheck command are run in background, to have an overview of the linter (instead of a fail at first issue) shellcheck "${script_to_check}" & done < <( # Search all the repository for sh and bash shebangs, excluding .js and .md files - # the folders ".git" and "vendor" are also ignored + # the folders ".git", "vendor" and "node_modules" are also ignored grep -rI '#!/' "${script_dir}"/.. \ | grep 'sh' | grep -v '.js' | grep -v '.md' \ - | grep -v '.git/' | grep -v 'vendor/' \ + | grep -v '.git/' | grep -v 'vendor/' | grep -v 'node_modules/' \ | cut -d':' -f1 ) wait # Wait for all background command to be completed