mirror of
https://github.com/mtan93/Installomator.git
synced 2026-04-01 22:04:24 +01:00
Merge pull request #377 from adibue/adibue-docker-xpath-correction
Docker: Changed xpath to use 'last()'
This commit is contained in:
@@ -3,10 +3,10 @@ docker)
|
|||||||
type="dmg"
|
type="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 )
|
appNewVersion=$( curl -fs "https://desktop.docker.com/mac/main/arm64/appcast.xml" | xpath '(//rss/channel/item/enclosure/@sparkle:shortVersionString)[last()]' 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 )
|
appNewVersion=$( curl -fs "https://desktop.docker.com/mac/main/amd64/appcast.xml" | xpath '(//rss/channel/item/enclosure/@sparkle:shortVersionString)[last()]' 2>/dev/null | cut -d '"' -f2 )
|
||||||
fi
|
fi
|
||||||
expectedTeamID="9BNSXJN65R"
|
expectedTeamID="9BNSXJN65R"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user