label screamingfrogspider.sh fix, dmg per arch

ScreamingFrogSpider now has different dmg per CPU arch.
Download page provides 2 dmg links, therefore we must fix downloadURL grep
This commit is contained in:
Sylvain Roche
2022-08-23 12:20:47 +02:00
parent 834780a294
commit 6db51a0ab1

View File

@@ -1,7 +1,12 @@
screamingfrogseospider)
name="Screaming Frog SEO Spider"
type="dmg"
downloadURL=$(curl -fs "https://www.screamingfrog.co.uk/wp-content/themes/screamingfrog/inc/download-modal.php" | grep -i -o "https.*\.dmg" | head -1)
if [[ $(arch) == i386 ]]; then
platform="Mac - (intel)"
elif [[ $(arch) == arm64 ]]; then
platform="Mac - (apple silicon)"
fi
downloadURL=$(curl -fs "https://www.screamingfrog.co.uk/wp-content/themes/screamingfrog/inc/download-modal.php" | grep "${platform}" | grep -i -o "https.*\.dmg" | head -1)
appNewVersion=$(print "$downloadURL" | sed -E 's/https.*\/[a-zA-Z]*-([0-9.]*)\.dmg/\1/g')".0"
expectedTeamID="CAHEVC3HZC"
;;