From 92db29a5d01582140d3b8ad2ddf47fb6756be630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Theilgaard?= Date: Fri, 21 May 2021 15:26:20 +0200 Subject: [PATCH] sublimetext --- Installomator.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Installomator.sh b/Installomator.sh index a272a96..ec46fc4 100755 --- a/Installomator.sh +++ b/Installomator.sh @@ -2489,12 +2489,11 @@ spotify) expectedTeamID="2FNC3A47ZF" ;; sublimetext) - # credit: Mischa van der Bent (@mischavdbent) + # credit: Søren Theilgaard (@theilgaard) name="Sublime Text" - type="dmg" - downloadURL="https://download.sublimetext.com/latest/stable/osx" - appNewVersion=$(curl -fs https://www.sublimetext.com/3 | grep 'class="latest"' | cut -d '>' -f 4 | sed -E 's/ (.*[0-9]*)<.*/\1/g') - #appNewVersion=$(curl -Is https://download.sublimetext.com/latest/stable/osx | grep "Location:" | sed -n -e 's/^.*Sublime Text //p' | sed 's/.dmg//g' | sed $'s/[^[:print:]\t]//g') # Alternative from @Oh4sh0 + type="zip" + downloadURL="$(curl -fs https://www.sublimetext.com/download | grep -io "https://download.*_mac.zip")" + appNewVersion=$(curl -fs https://www.sublimetext.com/download | grep -i -A 4 "id.*changelog" | grep -io "Build [0-9]*") expectedTeamID="Z6D26JE4Y4" ;; supportapp)