Skip to content

Commit 753df92

Browse files
committed
fix(lint): shell globbing
Signed-off-by: Artur Troian <[email protected]>
1 parent 2e33215 commit 753df92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

script/tools.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ function get_gotoolchain() {
5050
if [[ ${gotoolchain} == "" ]]; then
5151
# determine go toolchain from go version in go.mod
5252
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'")
53+
# 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'")
5455
if ! [[ $($SEMVER compare "v$local_goversion" v"$goversion") -ge 0 ]]; then
5556
goversion=$local_goversion
5657
else

0 commit comments

Comments
 (0)