We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 89bab5f + e294838 commit a31fe6fCopy full SHA for a31fe6f
install.sh
@@ -23,8 +23,19 @@ export PATH=$PATH:/usr/local/go/bin
23
if ! command -v go &>/dev/null; then
24
echo "Go not found. Installing Go 1.23.2..."
25
26
+ # Detect Architecture
27
+ ARCH=$(uname -m)
28
+ case $ARCH in
29
+ x86_64) GO_ARCH="amd64" ;;
30
+ aarch64) GO_ARCH="arm64" ;;
31
+ arm64) GO_ARCH="arm64" ;;
32
+ *) echo "Unsupported architecture: $ARCH"; exit 1 ;;
33
+ esac
34
+
35
+ echo "Detected architecture: linux-$GO_ARCH"
36
37
# Download Go
- curl -L "https://go.dev/dl/go1.23.2.linux-amd64.tar.gz" -o /tmp/go.tar.gz
38
+ curl -L "https://go.dev/dl/go1.23.2.linux-$GO_ARCH.tar.gz" -o /tmp/go.tar.gz
39
40
# Remove old installation if exists
41
rm -rf /usr/local/go
0 commit comments