Files
Installomator/fragments/labels/smartgit.sh
Søren Theilgaard 3e6ef1a6ee Update smartgit.sh
2021-11-18 21:30:11 +01:00

12 lines
627 B
Bash

smartgit)
name="SmartGit"
type="dmg"
if [[ $(arch) == "arm64" ]]; then
downloadURL="https://www.syntevo.com$(curl -fs "https://www.syntevo.com/smartgit/download/" | grep -i -o -E "/downloads/.*/smartgit.*\.dmg" | tail -1)"
elif [[ $(arch) == "i386" ]]; then
downloadURL="https://www.syntevo.com$(curl -fs "https://www.syntevo.com/smartgit/download/" | grep -i -o -E "/downloads/.*/smartgit.*\.dmg" | head -1)"
fi
appNewVersion="$(curl -fs "https://www.syntevo.com/smartgit/changelog.txt" | grep -i -E "SmartGit *[0-9.]* *.*" | head -1 | awk '{print $2}')"
expectedTeamID="PHMY45PTNW"
;;