Merge pull request #8676 from immanuwell/fix-shfmt-darwin-detection
Use SYSTEM for shfmt Darwin detection
This commit is contained in:
1 file changed
+1
-1
@@ -25,7 +25,7 @@ endif
|
|||||||
|
|
||||||
shfmt:
|
shfmt:
|
||||||
ifneq ($(shell shfmt --version >/dev/null 2>&1; echo $$?),0)
|
ifneq ($(shell shfmt --version >/dev/null 2>&1; echo $$?),0)
|
||||||
ifeq ($(shfmt),Darwin)
|
ifeq ($(SYSTEM),Darwin)
|
||||||
brew install shfmt
|
brew install shfmt
|
||||||
else
|
else
|
||||||
wget -qO /tmp/shfmt https://github.com/mvdan/sh/releases/download/v3.5.1/shfmt_v3.5.1_linux_${TARGETARCH}
|
wget -qO /tmp/shfmt https://github.com/mvdan/sh/releases/download/v3.5.1/shfmt_v3.5.1_linux_${TARGETARCH}
|
||||||
|
|||||||
Reference in new issue
Block a user