From 15f844273d5dad2fbc583c6cad2b1c0f291c15d3 Mon Sep 17 00:00:00 2001 From: Michael <30936296+mtan93@users.noreply.github.com> Date: Mon, 11 Oct 2021 19:10:40 +0100 Subject: [PATCH] Update zoom.sh --- zoom.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zoom.sh b/zoom.sh index 5ca6822..40c69b7 100644 --- a/zoom.sh +++ b/zoom.sh @@ -60,7 +60,7 @@ fi # Get the version number of the currently-installed App, if any. if [[ -e "/Applications/${appName}.app" ]]; then - currentinstalledlongver=`/usr/bin/defaults read "/Applications/zoom.us.app/Contents/Info" CFBundleShortVersionString` + currentinstalledlongver=`/usr/bin/defaults read "/Applications/${appName}.app/Contents/Info" CFBundleShortVersionString` currentinstalledver=$(echo $currentinstalledlongver | cut -f1 -d' ') echo "Current installed version is: $currentinstalledver" echo "Current installed version is: $currentinstalledver" >> ${logfile} @@ -122,7 +122,7 @@ fi /bin/rm /tmp/${dnldfile} #double check to see if the new version got updated - newlyinstalledlongver=`/usr/bin/defaults read "/Applications/zoom.us.app/Contents/Info" CFBundleShortVersionString` + newlyinstalledlongver=`/usr/bin/defaults read "/Applications/${appName}.app/Contents/Info" CFBundleShortVersionString` newlyinstalledver=$(echo ${newlyinstalledlongver} | cut -f1 -d' ') echo "Current installed version is: $currentinstalledver" if [[ $latestver == $newlyinstalledver ]]; then