From 60f600e29abe34ad21ef594c55c1ff0c36fbc676 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 4 Apr 2020 13:35:52 -0400 Subject: [PATCH] feat: upgrade shfmt --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c11a041..49f72a9 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ HARDWARE = $(shell uname -m) SYSTEM_NAME = $(shell uname -s | tr '[:upper:]' '[:lower:]') +SHFMT_VERSION = 3.0.2 + bats: ifeq ($(SYSTEM_NAME),darwin) @@ -28,7 +30,7 @@ ifneq ($(shell shfmt --version >/dev/null 2>&1 ; echo $$?),0) ifeq ($(shfmt),Darwin) brew install shfmt else - wget -qO /tmp/shfmt https://github.com/mvdan/sh/releases/download/v2.6.2/shfmt_v2.6.2_linux_amd64 + wget -qO /tmp/shfmt https://github.com/mvdan/sh/releases/download/v$(SHFMT_VERSION)/shfmt_v$(SHFMT_VERSION)_linux_amd64 chmod +x /tmp/shfmt sudo mv /tmp/shfmt /usr/local/bin/shfmt endif