We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e33215 commit 753df92Copy full SHA for 753df92
script/tools.sh
@@ -50,7 +50,8 @@ function get_gotoolchain() {
50
if [[ ${gotoolchain} == "" ]]; then
51
# determine go toolchain from go version in go.mod
52
if which go >/dev/null 2>&1; then
53
- local_goversion=$(env -i HOME=$HOME GOTOOLCHAIN=local $SHELL -l -c "go version | cut -d ' ' -f 3 | sed 's/go*//' | tr -d '\n'")
+ # shellcheck disable=SC2086
54
+ local_goversion=$(env -i HOME="$HOME" GOTOOLCHAIN=local $SHELL -l -c "go version | cut -d ' ' -f 3 | sed 's/go*//' | tr -d '\n'")
55
if ! [[ $($SEMVER compare "v$local_goversion" v"$goversion") -ge 0 ]]; then
56
goversion=$local_goversion
57
else
0 commit comments