From c40e941de2d8b2e9624e458d64109702a70e72a3 Mon Sep 17 00:00:00 2001 From: redxef Date: Wed, 22 Dec 2021 17:41:41 +0100 Subject: [PATCH] Add shellcheck log. --- .dockerignore | 1 + .gitignore | 1 + Makefile | 11 +++++++---- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.dockerignore b/.dockerignore index 720ef4b..a9e0515 100644 --- a/.dockerignore +++ b/.dockerignore @@ -2,5 +2,6 @@ build-docker Makefile README.md +shellcheck.log start start.tmpl diff --git a/.gitignore b/.gitignore index d2d50a9..9fb1cc6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ start build-docker +shellcheck.log diff --git a/Makefile b/Makefile index 3fd59a5..55ce5bd 100644 --- a/Makefile +++ b/Makefile @@ -16,15 +16,18 @@ $(START_SCRIPT): $(START_SCRIPT_SRC) sed -e "s/{TAG}/$(TAG)/g" -e "s/{INSTALLATION_NAME}/$(INSTALLATION_NAME)/g" $< > $@ chmod +x $@ -shellcheck: $(START_SCRIPT) - shellcheck $< +shellcheck.log: $(START_SCRIPT) + @echo "# Begin shellcheck log" > $@ + shellcheck $< >> $@ + +shellcheck: shellcheck.log check: shellcheck clean: - $(RM) build-docker $(START_SCRIPT) + $(RM) build-docker shellcheck.log $(START_SCRIPT) install: build install -D --mode=755 $(START_SCRIPT) $(PREFIX)/bin/$(INSTALLATION_NAME) -.PHONY: shellcheck check clean +.PHONY: check clean