appCustomVersion for getting installed version

This commit is contained in:
Søren Theilgaard
2022-03-03 14:53:47 +01:00
parent 56bf2a3dc4
commit bbae9356c4

View File

@@ -1,8 +1,9 @@
1passwordcli)
name="1Password CLI"
type="pkg"
packageID="com.1password.op"
#packageID="com.1password.op"
downloadURL=$(curl -fs https://app-updates.agilebits.com/product_history/CLI | grep -m 1 -i op_apple_universal | cut -d'"' -f 2)
appNewVersion=$(echo $downloadURL | sed -E 's/.*\/[a-zA-Z_]*([0-9.]*)\..*/\1/g')
appCustomVersion(){ /usr/local/bin/op -v }
expectedTeamID="2BUA8C4S2C"
;;
;;