From 3b872cf5ba5d965ec8f6b59e60cbb4bfbb629165 Mon Sep 17 00:00:00 2001 From: AP Orlebeke Date: Thu, 17 Dec 2020 11:36:41 -0500 Subject: [PATCH] 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. --- Installomator.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Installomator.sh b/Installomator.sh index 51897a5..8a90bba 100755 --- a/Installomator.sh +++ b/Installomator.sh @@ -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