diff --git a/Makefile b/Makefile index 6432f28..cdb1d20 100644 --- a/Makefile +++ b/Makefile @@ -13,16 +13,16 @@ ifeq ($(shell uname),Darwin) @echo "Setting up shellcheck (macOS)..." brew install shellcheck else ifeq ($(shell uname -s),Linux) - ifeq ($(shell uname -m),x86_64) - @echo "Setting up shfmt for amd64 (Linux)..." - SHFMT_BIN="shfmt_${SHFMT_VERSION}_linux_amd64" - else ifeq ($(shell uname -m),aarch64) - @echo "Setting up shfmt for arm64 (Linux)..." - SHFMT_BIN="shfmt_${SHFMT_VERSION}_linux_arm64" - else - @echo "Unsupported architecture $(shell uname -m)! Update this Makefile!" - exit 1 - endif +ifeq ($(shell uname -m),x86_64) + @echo "Setting up shfmt for amd64 (Linux)..." + SHFMT_BIN="shfmt_${SHFMT_VERSION}_linux_amd64" +else ifeq ($(shell uname -m),aarch64) + @echo "Setting up shfmt for arm64 (Linux)..." + SHFMT_BIN="shfmt_${SHFMT_VERSION}_linux_arm64" +else + @echo "Unsupported architecture $(shell uname -m)! Update this Makefile!" + exit 1 +endif wget -qO shfmt "https://github.com/mvdan/sh/releases/download/${SHFMT_VERSION}/${SHFMT_BIN}" chmod +x shfmt sudo mv shfmt /usr/local/bin/shfmt