Update smartgit.sh

This commit is contained in:
Søren Theilgaard
2021-11-18 21:30:11 +01:00
parent b78bc12fff
commit 3e6ef1a6ee

View File

@@ -1,7 +1,11 @@
smartgit) smartgit)
name="SmartGit" name="SmartGit"
type="dmg" type="dmg"
downloadURL="https://www.syntevo.com$(curl -fs "https://www.syntevo.com/smartgit/download/" | grep -i -o -E "/downloads/.*/smartgit.*\.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}')" appNewVersion="$(curl -fs "https://www.syntevo.com/smartgit/changelog.txt" | grep -i -E "SmartGit *[0-9.]* *.*" | head -1 | awk '{print $2}')"
expectedTeamID="PHMY45PTNW" expectedTeamID="PHMY45PTNW"
;; ;;