From bb95325cd8808dc6a5dd2d967dbd6cb2c5ddd08a Mon Sep 17 00:00:00 2001 From: Michael <30936296+mtan93@users.noreply.github.com> Date: Thu, 2 Dec 2021 14:22:17 +0000 Subject: [PATCH] Update google-chrome.sh --- google-chrome.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/google-chrome.sh b/google-chrome.sh index ccaef48..c935e64 100755 --- a/google-chrome.sh +++ b/google-chrome.sh @@ -63,7 +63,7 @@ pkgutil --expand "/Library/Caches/com.purplecomputing.mdm/Apps/${dnldfile}" /Lib latestver=$(cat /Library/Caches/com.purplecomputing.mdm/Apps/pkg/Distribution | grep 'CFBundleShortVersionString' | cut -f2 -d '"') /bin/echo "`date`: Removing expanded package" >> ${logfile} /bin/echo "Removing expanded package." -/bin/rm -rf /tmp/pkg +/bin/rm -rf /Library/Caches/com.purplecomputing.mdm/Apps/pkg # Get the version number of the currently-installed App, if any. @@ -95,7 +95,7 @@ latestver=$(cat /Library/Caches/com.purplecomputing.mdm/Apps/pkg/Distribution | if [[ "${forceQuit}" = "Y" ]]; then killall ${appName} fi - cd /tmp + cd /Library/Caches/com.purplecomputing.mdm/Apps/ /usr/sbin/installer -pkg ${dnldfile} -target / #double check to see if the new version got updated @@ -131,6 +131,6 @@ latestver=$(cat /Library/Caches/com.purplecomputing.mdm/Apps/pkg/Distribution | /bin/sleep 5 /bin/echo "`date`: Deleting the downloaded file." >> ${logfile} /bin/echo "Deleting the downloaded file." - /bin/rm /tmp/${dnldfile} + /bin/rm /Library/Caches/com.purplecomputing.mdm/Apps/${dnldfile} echo "Command: DeterminateManualStep: 1" >> ${deplog}