Skip to content
Snippets Groups Projects
Unverified Commit 43dbff93 authored by Kenichi Omichi's avatar Kenichi Omichi Committed by GitHub
Browse files

Exclude .git/ from shellcheck (#7048)

If a branch name contains '.sh', current shellcheck checks the branch
file under .git/ and outputs error because the format is not shell
script one.
This makes shellcheck exclude files under .git/ to avoid this issue.
parent 54aebb92
No related branches found
No related tags found
No related merge requests found
...@@ -12,5 +12,5 @@ shellcheck: ...@@ -12,5 +12,5 @@ shellcheck:
- shellcheck --version - shellcheck --version
script: script:
# Run shellcheck for all *.sh except contrib/ # Run shellcheck for all *.sh except contrib/
- find . -name '*.sh' -not -path './contrib/*' | xargs shellcheck --severity error - find . -name '*.sh' -not -path './contrib/*' -not -path './.git/*' | xargs shellcheck --severity error
except: ['triggers', 'master'] except: ['triggers', 'master']
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment