File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ install-modernize: FORCE
4646 @if ! hash modernize 2> /dev/null; then printf " \e[1;36m>> Installing modernize (this may take a while)...\e[0m\n" ; go install golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest; fi
4747
4848install-shellcheck : FORCE
49- @if ! hash shellcheck 2> /dev/null; then printf " \e[1;36m>> Installing shellcheck...\e[0m\n" ; SHELLCHECK_ARCH=$(shell uname -m) ; SHELLCHECK_OS=$(shell uname -s | tr '[:upper:]' '[:lower:]') ; if [[ " $$ SHELLCHECK_OS " == " darwin " ]] ; then SHELLCHECK_OS=macos ; fi ; SHELLCHECK_VERSION=" stable" ; if command -v curl > /dev/null 2>&1 ; then GET=" curl -sLo-" ; elif command -v wget > /dev/null 2>&1 ; then GET=" wget -O-" ; else echo " Didn't find curl or wget to download shellcheck" ; exit 2; fi ; $$ GET " https://github.com/koalaman/shellcheck/releases/download/$$ SHELLCHECK_VERSION/shellcheck-$$ SHELLCHECK_VERSION.$$ SHELLCHECK_OS.$$ SHELLCHECK_ARCH.tar.xz" | tar -Jxf -; BIN=$$(go env GOBIN ) ; if [[ -z $$ BIN ]]; then BIN=$$ (go env GOPATH)/bin; fi ; install -Dm755 shellcheck-$$ SHELLCHECK_VERSION/shellcheck -t " $$ BIN" ; rm -rf shellcheck-$$ SHELLCHECK_VERSION; fi
49+ @if ! hash shellcheck 2> /dev/null; then printf " \e[1;36m>> Installing shellcheck...\e[0m\n" ; SHELLCHECK_ARCH=$(shell uname -m) ; if [[ " $$ SHELLCHECK_ARCH " == " arm64 " ]] ; then SHELLCHECK_ARCH=aarch64 ; fi ; SHELLCHECK_OS=$(shell uname -s | tr '[:upper:]' '[:lower:]') ; SHELLCHECK_VERSION=" stable" ; if command -v curl > /dev/null 2>&1 ; then GET=" curl -sLo-" ; elif command -v wget > /dev/null 2>&1 ; then GET=" wget -O-" ; else echo " Didn't find curl or wget to download shellcheck" ; exit 2; fi ; $$ GET " https://github.com/koalaman/shellcheck/releases/download/$$ SHELLCHECK_VERSION/shellcheck-$$ SHELLCHECK_VERSION.$$ SHELLCHECK_OS.$$ SHELLCHECK_ARCH.tar.xz" | tar -Jxf -; BIN=$$(go env GOBIN ) ; if [[ -z $$ BIN ]]; then BIN=$$ (go env GOPATH)/bin; fi ; install -Dm755 shellcheck-$$ SHELLCHECK_VERSION/shellcheck -t " $$ BIN" ; rm -rf shellcheck-$$ SHELLCHECK_VERSION; fi
5050
5151install-go-licence-detector : FORCE
5252 @if ! hash go-licence-detector 2> /dev/null; then printf " \e[1;36m>> Installing go-licence-detector (this may take a while)...\e[0m\n" ; go install go.elastic.co/go-licence-detector@latest; fi
Original file line number Diff line number Diff line change @@ -126,8 +126,8 @@ endif
126126 `@if ! hash shellcheck 2>/dev/null; then` +
127127 ` printf "\e[1;36m>> Installing shellcheck...\e[0m\n";` +
128128 ` SHELLCHECK_ARCH=$(shell uname -m);` +
129+ ` if [[ "$$SHELLCHECK_ARCH" == "arm64" ]]; then SHELLCHECK_ARCH=aarch64; fi;` +
129130 ` SHELLCHECK_OS=$(shell uname -s | tr '[:upper:]' '[:lower:]');` +
130- ` if [[ "$$SHELLCHECK_OS" == "darwin" ]]; then SHELLCHECK_OS=macos; fi;` +
131131 ` SHELLCHECK_VERSION="stable";` +
132132 ` if command -v curl >/dev/null 2>&1; then GET="curl -sLo-"; elif command -v wget >/dev/null 2>&1; then GET="wget -O-"; else echo "Didn't find curl or wget to download shellcheck"; exit 2; fi;` +
133133 ` $$GET "https://github.com/koalaman/shellcheck/releases/download/$$SHELLCHECK_VERSION/shellcheck-$$SHELLCHECK_VERSION.$$SHELLCHECK_OS.$$SHELLCHECK_ARCH.tar.xz" | tar -Jxf -;` +
You can’t perform that action at this time.
0 commit comments