diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-12-02 07:46:50 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-12-02 08:18:21 +0200 |
commit | d9da7a7a1ab5b4199b17770d222fc5f041e4ad3e (patch) | |
tree | 0870b8468df245b43fcef74e0d3b0fc093767f20 /check | |
parent | ff07da8028390c9834212f8898c64f8fbcf30bd7 (diff) | |
download | subplot-d9da7a7a1ab5b4199b17770d222fc5f041e4ad3e.tar.gz |
test: use shellcheck to check most shell code
Split the Bash template into smaller files that don't use templating,
and check those file. Fix the couple of things shellcheck complained
about.
Diffstat (limited to 'check')
-rwxr-xr-x | check | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -49,6 +49,12 @@ then $hideok flake8 templates/python lib/*.py --exclude=template.py fi +if command -v shellcheck > /dev/null +then + shellcheck check ./*.sh + find templates/bash -name '*.sh' ! -name template.sh -exec shellcheck '{}' + +fi + $hideok cargo build --all-targets if cargo --list | awk '{ print $1 }' | grep 'clippy$' > /dev/null then @@ -67,7 +73,7 @@ then -exec black --check '{}' + fi -for md in [^CR]*.md lib/*.md +for md in [!CR]*.md lib/*.md do $hideok echo "$md =====================================" codegen "$md" test.py |