Skip to content

Commit

Permalink
fix: Fix Incorrect sed Regular Expression Handling Update tools.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Bryer <[email protected]>
  • Loading branch information
0xbryer authored Dec 22, 2024
1 parent d16d266 commit e3cdab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function get_gotoolchain() {
if [[ ${gotoolchain} == "" ]]; then
# determine go toolchain from go version in go.mod
if which go > /dev/null 2>&1 ; then
local_goversion=$(GOTOOLCHAIN=local go version | cut -d ' ' -f 3 | sed 's/go*//' | tr -d '\n')
local_goversion=$(GOTOOLCHAIN=local go version | cut -d ' ' -f 3 | sed 's/^go//' | tr -d '\n')
if [[ $($SEMVER compare "v$local_goversion" v"$goversion") -ge 0 ]]; then
goversion=$local_goversion
else
Expand Down

0 comments on commit e3cdab7

Please sign in to comment.