Update dbeaverce.sh

This commit is contained in:
Bradley Benkle
2022-03-21 12:52:07 -04:00
parent f0f4ff5747
commit 38f2f45d97

View File

@@ -1,7 +1,13 @@
dbeaverce)
name="DBeaver"
type="dmg"
downloadURL="https://dbeaver.io/files/dbeaver-ce-latest-macos.dmg"
if [[ $(arch) == "arm64" ]]; then
downloadURL="https://dbeaver.io/files/dbeaver-ce-latest-macos-aarch64.dmg"
appNewVersion="$(curl -fsIL "${downloadURL}" | grep -i ^location | sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/' | head -1)"
elif [[ $(arch) == "i386" ]]; then
downloadURL="https://dbeaver.io/files/dbeaver-ce-latest-macos.dmg"
appNewVersion="$(curl -fsIL "${downloadURL}" | grep -i ^location | sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/' | head -1)"
fi
expectedTeamID="42B6MDKMW8"
blockingProcesses=( dbeaver )
;;