From b2a091aa85512d9a53991d66ecd58c7edf36dd29 Mon Sep 17 00:00:00 2001 From: Casper Date: Tue, 23 Feb 2021 16:49:00 +0100 Subject: [PATCH] install_linters improved --- Makefile | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index dd8bb0d2..0d62d9df 100644 --- a/Makefile +++ b/Makefile @@ -63,14 +63,10 @@ eclint: install_linters: @ mkdir -p tools - @ curl -S -L \ - "https://github.com/hadolint/hadolint/releases/download/v$(HADOLINT_VERSION)/hadolint-$(shell uname -s)-$(shell uname -m)" -o tools/hadolint - @ curl -S -L \ - "https://github.com/koalaman/shellcheck/releases/download/v$(SHELLCHECK_VERSION)/shellcheck-v$(SHELLCHECK_VERSION).linux.x86_64.tar.xz" | tar -xJ - @ curl -S -L \ - "https://github.com/editorconfig-checker/editorconfig-checker/releases/download/$(ECLINT_VERSION)/ec-linux-amd64.tar.gz" | tar -xaz - @ chmod +rx tools/hadolint - @ mv "shellcheck-v$(SHELLCHECK_VERSION)/shellcheck" tools/ - @ mv bin/ec-linux-amd64 tools/eclint - @ chmod +x tools/eclint - @ rm -rf "shellcheck-v$(SHELLCHECK_VERSION)" bin + @ curl -S -L \ + "https://github.com/hadolint/hadolint/releases/download/v$(HADOLINT_VERSION)/hadolint-$(shell uname -s)-$(shell uname -m)" -o tools/hadolint + @ curl -S -L \ + "https://github.com/koalaman/shellcheck/releases/download/v$(SHELLCHECK_VERSION)/shellcheck-v$(SHELLCHECK_VERSION).linux.x86_64.tar.xz" | tar -Jx shellcheck-v$(SHELLCHECK_VERSION)/shellcheck -O > tools/shellcheck + @ curl -S -L \ + "https://github.com/editorconfig-checker/editorconfig-checker/releases/download/$(ECLINT_VERSION)/ec-linux-amd64.tar.gz" | tar -zx bin/ec-linux-amd64 -O > tools/eclint + @ chmod u+rx tools/*