Add vagrant

The XML from the vagrant downloads page is one giant html document with no spaces.  If there's a better & more efficient way of parsing this, please lmk or update according so it can serve as a template for other similarly formatted websites.
This commit is contained in:
AP Orlebeke
2020-12-17 11:36:41 -05:00
committed by GitHub
parent 789e53314d
commit 3b872cf5ba

View File

@@ -1725,6 +1725,15 @@ menumeters)
downloadURL=$(downloadURLFromGit yujitach MenuMeters )
expectedTeamID="95AQ7YKR5A"
;;
vagrant)
# credit: AP Orlebeke (@apizz)
name="Vagrant"
type="pkgInDmg"
pkgName="vagrant.pkg"
downloadURL=$(curl -fs https://www.vagrantup.com/downloads.html \
| tr '><' '\n' | awk -F'"' '/x86_64.dmg/ {print $6}' | head -1)
expectedTeamID="D38WU7D763"
;;
# MARK: add new labels above here