From 8334cbd120a8228f00f48355f87c8c8cb8b08081 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 11 Apr 2021 15:06:37 +0200 Subject: Adding shellcheck in test target (but not failing yet on it). Signed-off-by: Daniel Baumann --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2eca00b..343438e 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3