Update tools.func
This commit is contained in:
parent
7ad875cfdc
commit
5445729c0e
@ -345,7 +345,7 @@ install_go() {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# Determine version
|
# Determine version
|
||||||
if [[ -z "$GO_VERSION" || "$GO_VERSION" == "latest" ]]; then
|
if [[ -z "${GO_VERSION:-}" || "${GO_VERSION}" == "latest" ]]; then
|
||||||
GO_VERSION=$(curl -fsSL https://go.dev/VERSION?m=text | head -n1 | sed 's/^go//')
|
GO_VERSION=$(curl -fsSL https://go.dev/VERSION?m=text | head -n1 | sed 's/^go//')
|
||||||
if [[ -z "$GO_VERSION" ]]; then
|
if [[ -z "$GO_VERSION" ]]; then
|
||||||
msg_error "Could not determine latest Go version"
|
msg_error "Could not determine latest Go version"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user