Shell linter: https://github.com/koalaman/shellcheck

Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
This commit is contained in:
Andrew Hsu 2017-07-11 00:04:22 +00:00
Родитель cf6af1c0d6
Коммит b39937bd14
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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)