more fucking fixes
This commit is contained in:
parent
d947370dd2
commit
c764c56cfc
@ -182,9 +182,9 @@ apt-get install -y \
|
|||||||
|
|
||||||
# Install latest stable Go version
|
# Install latest stable Go version
|
||||||
echo "📦 Checking for latest Go version..."
|
echo "📦 Checking for latest Go version..."
|
||||||
LATEST_GO_VERSION=$(curl -s https://golang.org/VERSION?m=text 2>/dev/null)
|
LATEST_GO_VERSION=$(curl -s https://go.dev/VERSION?m=text 2>/dev/null | grep -E '^go[0-9]+\.[0-9]+(\.[0-9]+)?$')
|
||||||
if [ -z "$LATEST_GO_VERSION" ]; then
|
if [ -z "$LATEST_GO_VERSION" ]; then
|
||||||
echo "❌ Failed to get latest Go version from golang.org"
|
echo "❌ Failed to get latest Go version from go.dev"
|
||||||
echo "📦 Trying alternative method..."
|
echo "📦 Trying alternative method..."
|
||||||
LATEST_GO_VERSION=$(curl -s "https://api.github.com/repos/golang/go/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' 2>/dev/null)
|
LATEST_GO_VERSION=$(curl -s "https://api.github.com/repos/golang/go/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' 2>/dev/null)
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user