runtime/build_golang.sh

16 lines
237 B
Bash
Raw Normal View History

2024-08-13 17:59:45 +00:00
#!/bin/bash
set -e
mkdir -p /opt/techs
VERSION=$1
HASH=$2
cd /usr/src
wget https://go.dev/dl/go${VERSION}.linux-amd64.tar.gz
tar xf go${VERSION}.linux-amd64.tar.gz
mv go /opt/techs/golang-$VERSION
rm go${VERSION}.linux-amd64.tar.gz