From 3dd9818d9a7bf70c7c19094c65c309bfd05c7d6c Mon Sep 17 00:00:00 2001 From: fleish <2106430+fleish@users.noreply.github.com> Date: Tue, 23 Nov 2021 08:29:05 -0800 Subject: [PATCH] Update protonvpn.sh appNewVersion --- fragments/labels/protonvpn.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/fragments/labels/protonvpn.sh b/fragments/labels/protonvpn.sh index 44ec13d..fd54a5b 100644 --- a/fragments/labels/protonvpn.sh +++ b/fragments/labels/protonvpn.sh @@ -3,4 +3,5 @@ protonvpn) type="dmg" downloadURL=$(curl -fs "https://protonvpn.com/download" | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | grep dmg | tail -1) expectedTeamID="J6S6Q257EK" + appNewVersion=$(echo $downloadURL | awk -F\_ '{print $3}' | awk -F\. '{print $1"."$2"."$3}') ;;