mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-26 21:03:57 +00:00
Merge pull request #374 from adibue/adibue-docker-fix-appnewversion
Fixed 'appNewVersion' for 'docker'
This commit is contained in:
@@ -1,13 +1,12 @@
|
|||||||
docker)
|
docker)
|
||||||
# credit: @securitygeneration
|
|
||||||
name="Docker"
|
name="Docker"
|
||||||
type="dmg"
|
type="dmg"
|
||||||
#downloadURL="https://download.docker.com/mac/stable/Docker.dmg"
|
|
||||||
if [[ $(arch) == arm64 ]]; then
|
if [[ $(arch) == arm64 ]]; then
|
||||||
downloadURL="https://desktop.docker.com/mac/stable/arm64/Docker.dmg"
|
downloadURL="https://desktop.docker.com/mac/stable/arm64/Docker.dmg"
|
||||||
|
appNewVersion=$( curl -fs "https://desktop.docker.com/mac/main/arm64/appcast.xml" | xpath '(//rss/channel/item/enclosure/@sparkle:shortVersionString)[1]' 2>/dev/null | cut -d '"' -f2 )
|
||||||
elif [[ $(arch) == i386 ]]; then
|
elif [[ $(arch) == i386 ]]; then
|
||||||
downloadURL="https://desktop.docker.com/mac/stable/amd64/Docker.dmg"
|
downloadURL="https://desktop.docker.com/mac/stable/amd64/Docker.dmg"
|
||||||
|
appNewVersion=$( curl -fs "https://desktop.docker.com/mac/main/amd64/appcast.xml" | xpath '(//rss/channel/item/enclosure/@sparkle:shortVersionString)[1]' 2>/dev/null | cut -d '"' -f2 )
|
||||||
fi
|
fi
|
||||||
appNewVersion=$(curl -ifs https://docs.docker.com/docker-for-mac/release-notes/ | grep ">Docker Desktop Community" | head -1 | sed -n -e 's/^.*Community //p' | cut -d '<' -f1)
|
|
||||||
expectedTeamID="9BNSXJN65R"
|
expectedTeamID="9BNSXJN65R"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user