Skip to content

Commit 5f9f472

Browse files
committed
clean
1 parent db3460a commit 5f9f472

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ ifeq ($(shell uname),Darwin)
1313
@echo "Setting up shellcheck (macOS)..."
1414
brew install shellcheck
1515
else ifeq ($(shell uname -s),Linux)
16-
# ifeq ($(shell uname -m),x86_64)
16+
ifeq ($(shell uname -m),x86_64)
1717
@echo "Setting up shfmt for amd64 (Linux)..."
18-
SHFMT_BIN="shfmt_${SHFMT_VERSION}_linux_amd64"
19-
# else ifeq ($(shell uname -m),aarch64)
20-
# @echo "Setting up shfmt for arm64 (Linux)..."
21-
# SHFMT_BIN="shfmt_${SHFMT_VERSION}_linux_arm64"
22-
# else
23-
# @echo "Unsupported architecture $(shell uname -m)! Update this Makefile!"
24-
# exit 1
25-
# endif
18+
SHFMT_BIN=shfmt_${SHFMT_VERSION}_linux_amd64
19+
else ifeq ($(shell uname -m),aarch64)
20+
@echo "Setting up shfmt for arm64 (Linux)..."
21+
SHFMT_BIN=shfmt_${SHFMT_VERSION}_linux_arm64
22+
else
23+
@echo "Unsupported architecture $(shell uname -m)! Update this Makefile!"
24+
exit 1
25+
endif
2626
wget -qO shfmt "https://github.com/mvdan/sh/releases/download/${SHFMT_VERSION}/${SHFMT_BIN}"
2727
chmod +x shfmt
2828
sudo mv shfmt /usr/local/bin/shfmt

0 commit comments

Comments
 (0)