From c6e62725da091a0464d711e6fdf1a3cb4f9ef5c6 Mon Sep 17 00:00:00 2001 From: Martin Winkler Date: Sun, 29 May 2022 21:12:20 +0200 Subject: [PATCH] matterbridge - update go download link --- seqs/matterbridge.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/seqs/matterbridge.sh b/seqs/matterbridge.sh index 9538860..eb0303d 100755 --- a/seqs/matterbridge.sh +++ b/seqs/matterbridge.sh @@ -97,8 +97,8 @@ step_10() { toolBackup="${toolDir}/${toolName}_bu" fi exe service ${toolName} stop >>/dev/null 2>&1 - info -n " [I] Backing up existing executable to ${toolBackup}..." - exe cp -ar "$toolLoc" "$toolBackup" && info "ok" + sqr::echo -n " [i] Backing up existing executable to ${toolBackup}..." + exe cp -ar "$toolLoc" "$toolBackup" && sqr::echo "ok" fi } versionNow=$([ ! -z $(which ${toolName}) ] && ${toolName} --version | sed 's/.*version: \([0-9.]\+\).*/\1/') @@ -137,18 +137,18 @@ step_30_info() { step_30_alias() { echo "build"; } step_30() { shift - local goVer="$(curl --silent -L https://go.dev/doc/devel/release | \ - grep --max-count 1 -E "go[[:digit:]\.]{3,}" |\ - sed 's/.*go\([[:digit:]\.]\+\).*/\1/g')" + local goVer="$(curl --silent -L https://go.dev/dl | \ + grep --max-count 1 -E "go[[:digit:]\.]{3,}.*\.tar\.gz" |\ + sed 's/.*\/\(go.*\)\.linux.*/\1/g')" local goArch="armhf" #arm64" - local goDownUrl="https://go.dev/dl/go${goVer}.linux-${goArch}.tar.gz" case "${1}" in --arch|-a) goArch="${2}" shift 2 ;; esac [[ "${goArch}" == "armhf" ]] && goArch="armv6l" - + local goDownUrl="https://go.dev/dl/${goVer}.linux-${goArch}.tar.gz" + # Download latest go if [ ! -e "${goDir}" ] ; then info "Download go${goVer}: ${goDownUrl}"