diff --git a/LibreOffice.sh b/LibreOffice.sh index 12f22b7..52870b1 100644 --- a/LibreOffice.sh +++ b/LibreOffice.sh @@ -83,7 +83,7 @@ if [[ "${currentinstalledver}" != "${latestver}" ]]; then /bin/echo "Available ${appName} version: ${latestver}" /bin/echo "`date`: Downloading newer version." >> ${logfile} /bin/echo "Downloading newer version." - /bin/echo ${url} + /bin/echo ${url} >> ${logfile} curl -o /tmp/${dnldfile} ${url} >> ${logfile} if [[ "${forceQuit}" = "Y" ]]; then killall ${appName} @@ -95,7 +95,7 @@ if [[ "${currentinstalledver}" != "${latestver}" ]]; then /usr/bin/hdiutil attach /tmp/${dnldfile} -nobrowse >> ${logfile} /bin/sleep 5 /bin/echo "`date`: Installing..." >> ${logfile} - ditto -rsrc "/Volumes/${appName}/${appName}.app" "/Applications/${appName}.app" >> ${logfile} + ditto -rsrc -v -V "/Volumes/${appName}/${appName}.app" "/Applications/${appName}.app" >> ${logfile} /bin/echo "`date`: Unmounting installer disk image." >> ${logfile} /usr/bin/hdiutil detach $(/bin/df | /usr/bin/grep ${appName} | awk '{print $1}') >> ${logfile} /bin/sleep 5