From ae34d5591e916761223fd8a108a4de91a75ac4ff Mon Sep 17 00:00:00 2001 From: Fletcher Salesky Date: Mon, 20 Jun 2022 10:50:20 -0700 Subject: [PATCH] Update Wireshark download URL Update Wireshark to use version from appNewVersion to prevent grabbing dev builds. --- fragments/labels/wireshark.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fragments/labels/wireshark.sh b/fragments/labels/wireshark.sh index d293dd8..6932319 100644 --- a/fragments/labels/wireshark.sh +++ b/fragments/labels/wireshark.sh @@ -1,11 +1,11 @@ wireshark) name="Wireshark" type="dmg" - if [[ $(arch) == i386 ]]; then - downloadURL="https://1.as.dl.wireshark.org/osx/Wireshark%20Latest%20Intel%2064.dmg" - elif [[ $(arch) == arm64 ]]; then - downloadURL="https://1.as.dl.wireshark.org/osx/Wireshark%20Latest%20Arm%2064.dmg" - fi appNewVersion=$(curl -fs https://www.wireshark.org/download.html | grep -i "href.*_stable" | sed -E 's/.*\(([0-9.]*)\).*/\1/g') + if [[ $(arch) == i386 ]]; then + downloadURL="https://1.as.dl.wireshark.org/osx/Wireshark%20$appNewVersion%20Intel%2064.dmg" + elif [[ $(arch) == arm64 ]]; then + downloadURL="https://1.as.dl.wireshark.org/osx/Wireshark%20$appNewVersion%20Arm%2064.dmg" + fi expectedTeamID="7Z6EMTD2C6" ;;