NekoBoxForAndroid/buildScript/init/action/go.sh
2023-03-15 00:00:00 +00:00

16 lines
325 B
Bash
Executable File

#!/bin/bash
set -e
source buildScript/init/env.sh
mkdir -p $GOPATH
cd $golang
if [ ! -f "go/bin/go" ]; then
curl -Lso go.tar.gz https://go.dev/dl/go1.20.linux-amd64.tar.gz
echo "5a9ebcc65c1cce56e0d2dc616aff4c4cedcfbda8cc6f0288cc08cda3b18dcbf1 go.tar.gz" | sha256sum -c -
tar xzf go.tar.gz
fi
go version
go env