From 5e0e77c346e64d96ba88d182d1ae17c971576cef Mon Sep 17 00:00:00 2001 From: Fletcher Salesky Date: Tue, 31 May 2022 19:42:57 -0700 Subject: [PATCH] Update notion.sh --- fragments/labels/notion.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fragments/labels/notion.sh b/fragments/labels/notion.sh index aa1ab0a..7e608e8 100644 --- a/fragments/labels/notion.sh +++ b/fragments/labels/notion.sh @@ -4,9 +4,10 @@ notion) type="dmg" if [[ $(arch) == "arm64" ]]; then downloadURL="https://www.notion.so/desktop/apple-silicon/download" + appNewVersion=$( curl -fsIL "https://www.notion.so/desktop/apple-silicon/download" | grep -i "^location" | awk '{print $2}' | sed -e 's/.*Notion\-\(.*\)\-arm64.dmg.*/\1/' ) elif [[ $(arch) == "i386" ]]; then downloadURL="https://www.notion.so/desktop/mac/download" + appNewVersion=$( curl -fsIL "https://www.notion.so/desktop/mac/download" | grep -i "^location" | awk '{print $2}' | sed -e 's/.*Notion\-\(.*\).dmg.*/\1/' ) fi - appNewVersion=$( curl -fsIL "${downloadURL}" | grep -i "^location" | awk '{print $2}' | tr -d '\r\n' | sed -E 's/.*\/[a-zA-Z]*-([0-9.]*)\..*/\1/g' ) expectedTeamID="LBQJ96FQ8D" ;;