From 15a68649c660757787bbea36a1798d016777fd9b Mon Sep 17 00:00:00 2001 From: wattsy74 <49881777+wattsy74@users.noreply.github.com> Date: Wed, 29 Sep 2021 12:26:45 +0100 Subject: [PATCH] Update 1-password.sh --- 1-password.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/1-password.sh b/1-password.sh index 70ccdbe..4ad5844 100644 --- a/1-password.sh +++ b/1-password.sh @@ -20,6 +20,8 @@ # - 1.2 Martyn Watts, 22.09.2021 Fixed the exclusion of beta versions recently introduced into the release notes # - 1.3 Martyn Watts, 24.09.2021 Added Check to see if dockutil is installed to make the script more resilient # - 1.4 Martyn Watts, 28.09.2021 Added Open Console Parameter to use with TeamViewer +# - 1.5 Martyn Watts, 29.09.2021 Removed erroneous space in deplog path, moved the Open Console section to below the initial creation event +# & Created a scriptver variable that is recorded in the log files # #################################################################################################### # Script to download and install 1Password 7. @@ -31,15 +33,18 @@ dnldfile='1Password.pkg' appName='1Password 7' forceQuit='Y' logfile="/Library/Logs/1Password7InstallScript.log" -deplog=" /var/tmp/depnotify.log" +deplog="/var/tmp/depnotify.log" +scriptver="1.5" + +/bin/echo "Status: Installing ${appName}" >> ${deplog} +/bin/echo "Status: Installing ${appName}" >> ${logfile} if [[ $@ == "openconsole" ]]; then open ${logfile} open ${deplog} fi -/bin/echo "Status: Installing ${appName}" >> ${deplog} - +/bin/echo "Script Version: ${scriptver}" >> ${logfile} # To get just the latest version number from the 1Password 7 Release Notes URL /bin/echo "`date`: Getting latest version number" >> ${logfile}