Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
ysawa0 committed May 12, 2024
1 parent 74c870c commit d26afe7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d26afe7

Please sign in to comment.