From b39937bd14fb681f1d37a151beb8cd2d5abd2a4d Mon Sep 17 00:00:00 2001 From: Andrew Hsu Date: Tue, 11 Jul 2017 00:04:22 +0000 Subject: [PATCH] add shellcheck make target Shell linter: https://github.com/koalaman/shellcheck Signed-off-by: Andrew Hsu --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 3dbc3e1..7b361a9 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ VERIFY_INSTALL_DISTROS:=$(addprefix verify-install-,centos-7 fedora-24 fedora-25 CHANNEL_TO_TEST?=test EXPECTED_VERSION?= EXPECTED_GITCOMMIT?= +SHELLCHECK=shellcheck .PHONY: needs_version needs_version: @@ -16,6 +17,10 @@ ifndef EXPECTED_GITCOMMIT $(error EXPECTED_GITCOMMIT is undefined) endif +.PHONY: shellcheck +shellcheck: + $(SHELLCHECK) install.sh + .PHONY: check check: $(VERIFY_INSTALL_DISTROS)