diff --git a/scripts/installgo_mac.sh b/scripts/installgo_mac.sh index 04f99b894..5f6d8cd43 100644 --- a/scripts/installgo_mac.sh +++ b/scripts/installgo_mac.sh @@ -4,18 +4,15 @@ set -eux ARCH=$(uname -m) GO_VERSION="1.19.2" -# To easily find and replace the hashes -# shellcheck disable=SC2034 GO_VERSION_SHA_arm64="35d819df25197c0be45f36ce849b994bba3b0559b76d4538b910d28f6395c00d" # from https://golang.org/dl -# shellcheck disable=SC2034 GO_VERSION_SHA_amd64="16f8047d7b627699b3773680098fbaf7cc962b7db02b3e02726f78c4db26dfde" # from https://golang.org/dl if [ "$ARCH" = 'arm64' ]; then GO_ARCH="darwin-arm64" - GO_VERSION_SHA=GO_VERSION_SHA_arm64 + GO_VERSION_SHA=${GO_VERSION_SHA_arm64} elif [ "$ARCH" = 'x86_64' ]; then GO_ARCH="darwin-amd64" - GO_VERSION_SHA=GO_VERSION_SHA_amd64 + GO_VERSION_SHA=${GO_VERSION_SHA_amd64} fi # This path is cachable. (Saving in /usr/local/ would cause issues restoring the cache.)