File tree 1 file changed +14
-5
lines changed
1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -12,17 +12,26 @@ ifeq ($(shell uname),Darwin)
12
12
13
13
@echo "Setting up shellcheck (macOS)..."
14
14
brew install shellcheck
15
+ else ifeq ($(shell uname -s),Linux)
16
+ ifeq ($(shell uname -m) ,x86_64)
17
+ @echo "Setting up shfmt for amd64 (Linux)..."
18
+ wget -qO shfmt "https://github.com/mvdan/sh/releases/download/${SHFMT_VERSION}/shfmt_${SHFMT_VERSION}_linux_amd64"
19
+ else ifeq ($(shell uname -m),aarch64)
20
+ @echo "Setting up shfmt for arm64 (Linux)..."
21
+ wget -qO shfmt "https://github.com/mvdan/sh/releases/download/${SHFMT_VERSION}/shfmt_${SHFMT_VERSION}_linux_arm64"
15
22
else
16
- @echo "Setting up shfmt (Linux)..."
17
- wget -qO shfmt "https://github.com/mvdan/sh/releases/download/${SHFMT_VERSION}/shfmt_${SHFMT_VERSION}_$(shell uname -m)"
23
+ @echo "Unsupported architecture $(shell uname -m)! Update this Makefile!"
24
+ exit 1
25
+ endif
18
26
chmod +x shfmt
19
- sudo mv shfmt /usr/local/bin/
20
-
27
+ sudo mv shfmt /usr/local/bin/shfmt
21
28
@echo "Setting up shellcheck (Linux)..."
22
29
sudo apt-get install shellcheck || sudo yum install shellcheck || sudo dnf install shellcheck
30
+ else
31
+ @echo "Unsupported operating system! Update this Makefile or use macOS/Linux."
32
+ exit 1
23
33
endif
24
34
25
35
.PHONY : reqtxt
26
36
reqtxt :
27
37
poetry export -f requirements.txt --output requirements.txt
28
-
You can’t perform that action at this time.
0 commit comments