summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-12-02 07:46:50 +0200
committerLars Wirzenius <liw@liw.fi>2020-12-02 08:18:21 +0200
commitd9da7a7a1ab5b4199b17770d222fc5f041e4ad3e (patch)
tree0870b8468df245b43fcef74e0d3b0fc093767f20 /check
parentff07da8028390c9834212f8898c64f8fbcf30bd7 (diff)
downloadsubplot-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-xcheck8
1 files changed, 7 insertions, 1 deletions
diff --git a/check b/check
index 47857d2..ccd978d 100755
--- a/check
+++ b/check
@@ -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