diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2021-04-11 13:06:37 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2021-04-11 13:09:35 +0000 |
commit | 8334cbd120a8228f00f48355f87c8c8cb8b08081 (patch) | |
tree | b2257aa5c85a7180d7ef5d721321e341bfba986c | |
parent | Cosmetically improving output of test target. (diff) | |
download | compute-tools-8334cbd120a8228f00f48355f87c8c8cb8b08081.tar.xz compute-tools-8334cbd120a8228f00f48355f87c8c8cb8b08081.zip |
Adding shellcheck in test target (but not failing yet on it).
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rw-r--r-- | Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -47,6 +47,18 @@ test: fi @echo " done." + # FIXME: fail hard on shellcheck once all issues are fixed + @echo -n "Checking with shellcheck... " + @if [ -x /usr/bin/checkbashisms ]; \ + then \ + for SCRIPT in $(SCRIPTS); \ + do \ + shellcheck $${SCRIPT} || true; \ + echo -n "."; \ + done; \ + else \ + echo "Note: shellcheck not installed, skipping shellcheck."; \ + fi @echo " done." build: share/man/*.txt |