From 06f1e6542a76b6f0043c2452f1b68d3a7670f5b9 Mon Sep 17 00:00:00 2001 From: wattsy74 <49881777+wattsy74@users.noreply.github.com> Date: Wed, 29 Sep 2021 18:19:34 +0100 Subject: [PATCH] Revert "Update zoom.sh" This reverts commit 3f87adc76b527e25b7e2ce8e8572f127f49e151d. --- zoom.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zoom.sh b/zoom.sh index ecd6935..be8a71b 100644 --- a/zoom.sh +++ b/zoom.sh @@ -27,7 +27,7 @@ dnldfile='zoom.pkg' forceQuit='Y' logfile="/Library/Logs/ZoomInstallScript.log" deplog="/var/tmp/depnotify.log" -scriptver="1.0h" +scriptver="1.0g" architecture=$(/usr/bin/arch) userAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X ${OSvers_URL}) AppleWebKit/535.6.2 (KHTML, like Gecko) Version/5.2 Safari/535.6.2" @@ -43,7 +43,7 @@ fi # To get just the latest version url and number from the download URL -latestver=$(curl -A ${userAgent} ${releaseNotesUrl} | iconv -f windows-1251 | grep -m 1 'Version' | cut -f1 -d' ') +latestver=$(curl -A ${userAgent} ${releaseNotesUrl} | iconv -f windows-1251 | grep -m 1 'Version' | cut -f1 -d'<') echo "Latest version available is: $latestver" @@ -57,7 +57,7 @@ fi # Get the version number of the currently-installed App, if any. if [[ -e "/Applications/${appName}.app" ]]; then - currentinstalledver=$(`/usr/bin/defaults read "/Applications/${appName}.app/Contents/Info" CFBundleShortVersionString` | cut -f1 -d' ') + currentinstalledver=`/usr/bin/defaults read "/Applications/${appName}.app/Contents/Info" CFBundleShortVersionString` echo "Current installed version is: $currentinstalledver" echo "Current installed version is: $currentinstalledver" >> ${logfile} if [[ $latestver = $currentinstalledver ]]; then