matterbridge - fix go download link creation
This commit is contained in:
@@ -137,18 +137,18 @@ step_30_info() {
|
|||||||
step_30_alias() { ALIAS="build"; }
|
step_30_alias() { ALIAS="build"; }
|
||||||
step_30() {
|
step_30() {
|
||||||
shift
|
shift
|
||||||
local goVer="$(curl --silent -L https://go.dev/doc/devel/release | \
|
local goVer="$(curl --silent -L https://go.dev/dl | \
|
||||||
grep --max-count 1 -E "go[[:digit:]\.]{3,}" |\
|
grep --max-count 1 -E "go[[:digit:]\.]{3,}.*\.tar\.gz" |\
|
||||||
sed 's/.*go\([[:digit:]\.]\+\).*/\1/g')"
|
sed 's/.*\/\(go.*\)\.linux.*/\1/g')"
|
||||||
local goArch="armhf" #arm64"
|
local goArch="armhf" #arm64"
|
||||||
local goDownUrl="https://go.dev/dl/go${goVer}.linux-${goArch}.tar.gz"
|
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
--arch|-a)
|
--arch|-a)
|
||||||
goArch="${2}"
|
goArch="${2}"
|
||||||
shift 2 ;;
|
shift 2 ;;
|
||||||
esac
|
esac
|
||||||
[[ "${goArch}" == "armhf" ]] && goArch="armv6l"
|
[[ "${goArch}" == "armhf" ]] && goArch="armv6l"
|
||||||
|
local goDownUrl="https://go.dev/dl/${goVer}.linux-${goArch}.tar.gz"
|
||||||
|
|
||||||
# Download latest go
|
# Download latest go
|
||||||
if [ ! -e "${goDir}" ] ; then
|
if [ ! -e "${goDir}" ] ; then
|
||||||
echoseq "Download go${goVer}: ${goDownUrl}"
|
echoseq "Download go${goVer}: ${goDownUrl}"
|
||||||
|
Reference in New Issue
Block a user