feat: respect TARGETARCH when installing development dependencies

This commit is contained in:
Jose Diaz-Gonzalez
2022-10-12 21:53:11 -04:00
parent dfcce1c6a6
commit a39a47b3ae
2 changed files with 15 additions and 13 deletions

View File

@@ -26,7 +26,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/v3.5.1/shfmt_v3.5.1_linux_${TARGETARCH}
chmod +x /tmp/shfmt
sudo mv /tmp/shfmt /usr/local/bin/shfmt
endif