From 53f337c255259b8b2c760ab585f08f93414f98bd Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Mon, 10 Apr 2023 04:55:39 +0000 Subject: [PATCH] tools/install-go: fix install script --- tools/install-go.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/install-go.sh b/tools/install-go.sh index 5ecc27d..89b6620 100755 --- a/tools/install-go.sh +++ b/tools/install-go.sh @@ -3,8 +3,8 @@ set -euxo pipefail INSTALL_DIR="/usr/local/bin" -GODEB=https://godeb.s3.amazonaws.com/godeb-${ARCH}.tar.gz GOVERSION=1.20.3 +ARCH=amd64 preflight () { @@ -20,11 +20,13 @@ preflight () { *) echo "[!] $(uname -m) is an unsupported architecture." > /dev/stderr echo '[!] supported architectures: amd64, arm64' > /dev/stderr + exit 1 ;; esac } install_godeb () { + local GODEB=https://godeb.s3.amazonaws.com/godeb-${ARCH}.tar.gz if [ -x "${INSTALL_DIR}/godeb" ] then return 0