Update tableaupublic.sh

This commit is contained in:
Søren Theilgaard
2022-01-20 09:03:08 +01:00
committed by GitHub
parent 197e07ed99
commit f2354ec755

View File

@@ -3,6 +3,6 @@ tableaupublic)
type="pkgInDmg"
packageID="com.tableausoftware.tableaudesktop"
downloadURL=$(curl -fs https://www.tableau.com/downloads/public/mac | awk '/TableauPublic/' | xmllint --recover --html --xpath "//a/text()" -)
appNewVersion=$(/usr/bin/python -c "import re; url = '$downloadURL'; ver_regex = re.compile(r'([0-9]+(?:-[0-9]+)+)'); ver_regex.findall(url); dashes = ''.join(ver_regex.findall(url)); print(dashes.replace('-', '.'))")
appNewVersion=$( echo $downloadURL | sed -E 's/.*TableauPublic-([-0-9]*)\.dmg/\1/g' | tr "-" "." )
expectedTeamID="QJ4XPRK37C"
;;