From: Darshaka Pathirana Date: Fri, 4 Dec 2020 11:55:47 +0000 (+0100) Subject: Makefile: Do not shellcheck iimage X-Git-Tag: v2.11.0~1^2~21 X-Git-Url: http://git.grml.org/?p=grml-scripts.git;a=commitdiff_plain;h=e41ddb1a1f5abf996258b83ed5f1d12d0ee88da7 Makefile: Do not shellcheck iimage iimage is not developed by the Grml-Team but causes a lot of shellcheck warnings. While at it also ignore SC1117 for all scripts because the check has been retired in shellcheck v0.5+. --- diff --git a/Makefile b/Makefile index 82019a7..ac667b1 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ all: codecheck spellcheck ## Run codecheck and spellcheck codecheck: shellcheck pythoncheck ## Run shellcheck and pythoncheck shellcheck: ## Run shellcheck - for shellfile in usr_bin/* usr_sbin/* usr_share/*; do head -1 "$${shellfile}" | grep -q "/bin/bash\|/bin/sh" && shellcheck -x "$${shellfile}"; done + for shellfile in $$(ls usr_bin/* usr_sbin/* usr_share/* | grep -v "iimage"); do head -1 "$${shellfile}" | grep -q "/bin/bash\|/bin/sh" && shellcheck -e SC1117 -x "$${shellfile}"; done .ONESHELL: pythoncheck: ## Run shellcheck