mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-26 21:03:57 +00:00
Update golang.sh
Different `downloadURL` for architectures. They even call `x86` for `amd`.
This commit is contained in:
@@ -2,7 +2,11 @@ golang)
|
|||||||
name="GoLang"
|
name="GoLang"
|
||||||
type="pkg"
|
type="pkg"
|
||||||
packageID="org.golang.go"
|
packageID="org.golang.go"
|
||||||
downloadURL="https://go.dev$(curl -fs "https://go.dev/dl/" | grep -i "downloadBox" | grep "pkg" | tr '"' '\n' | grep "pkg")"
|
if [[ $(arch) == "arm64" ]]; then
|
||||||
|
downloadURL="https://go.dev$(curl -fs "https://go.dev/dl/" | grep -i "downloadBox" | grep "darwin-arm" | tr '"' '\n' | grep "pkg")"
|
||||||
|
elif [[ $(arch) == "i386" ]]; then
|
||||||
|
downloadURL="https://go.dev$(curl -fs "https://go.dev/dl/" | grep -i "downloadBox" | grep "darwin-amd" | tr '"' '\n' | grep "pkg")"
|
||||||
|
fi
|
||||||
appNewVersion="$( echo "${downloadURL}" | sed -E 's/.*\/(go[0-9.]*)\..*/\1/g' )" # Version includes letters "go" in the beginning
|
appNewVersion="$( echo "${downloadURL}" | sed -E 's/.*\/(go[0-9.]*)\..*/\1/g' )" # Version includes letters "go" in the beginning
|
||||||
expectedTeamID="EQHXZ8M8AV"
|
expectedTeamID="EQHXZ8M8AV"
|
||||||
blockingProcesses=( NONE )
|
blockingProcesses=( NONE )
|
||||||
|
|||||||
Reference in New Issue
Block a user