From bbae9356c4df08f2d15a70002e647f020dd763ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Theilgaard?= Date: Thu, 3 Mar 2022 14:53:47 +0100 Subject: [PATCH] `appCustomVersion` for getting installed version --- fragments/labels/1passwordcli.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fragments/labels/1passwordcli.sh b/fragments/labels/1passwordcli.sh index 4ea7d80..fa6b86f 100644 --- a/fragments/labels/1passwordcli.sh +++ b/fragments/labels/1passwordcli.sh @@ -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" - ;; \ No newline at end of file + ;;