From 38fefe586b2e1bd26166c25cc667a68a1edb07e7 Mon Sep 17 00:00:00 2001 From: wattsy74 <49881777+wattsy74@users.noreply.github.com> Date: Wed, 29 Sep 2021 09:08:54 +0100 Subject: [PATCH] Update LibreOffice.sh --- LibreOffice.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/LibreOffice.sh b/LibreOffice.sh index a943e81..12f22b7 100644 --- a/LibreOffice.sh +++ b/LibreOffice.sh @@ -13,14 +13,17 @@ # # HISTORY # -# Version: 1.0 +# Version: 1.2 # # - 1.0 Martyn Watts, 28.09.2021 Initial Build +# - 1.1 Martyn Watts, 29.09.2021 First working build +# - 1.2 Martyn Watts, 29.09.2021 Extended log information around the download, mount, copy & unmount operations # ######################################################################### # Script to download and install LibreOffice. # +scriptver='1.2' releaseNotesUrl='https://www.libreoffice.org/download/download/' dnldfile='LibreOffice.dmg' appName='LibreOffice' @@ -29,14 +32,17 @@ logfile="/Library/Logs/${appName}.log" deplog="/var/tmp/depnotify.log" 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" -/bin/echo "Status: Installing ${appName}" >> ${deplog} -/bin/echo "Status: Installing ${appName}" >> ${logfile} +/bin/echo "Version: Script version ${scriptver}" >> ${deplog} +/bin/echo "Version: Script version ${scriptver}" >> ${logfile} if [[ $@ == "openconsole" ]]; then open ${logfile} open ${deplog} fi +/bin/echo "Status: Installing ${appName}" >> ${deplog} +/bin/echo "Status: Installing ${appName}" >> ${logfile} + # To get just the latest version number from the Release Notes URL /bin/echo "`date`: Getting latest version number" >> ${logfile} /bin/echo "Getting latest version number"