diff --git a/ChangeLog b/ChangeLog index 6caf850..19e2b61 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2022-10-06 Matteo Corti + + * update.sh: Added --agree-to-license to softwareupdate + 2022-07-01 Matteo Corti * update.sh: Some more spacing and MS before MacUpdater diff --git a/NEWS.md b/NEWS.md index d77875e..9c248a3 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,6 @@ - * 2022-06-16 Version 1.4.1 +* 2022-10-06 Version 1.4.2 + * Automatically accept the license by Apple updates +* 2022-06-16 Version 1.4.1 * Force a scan before updating with MacUpdater * 2022-06-15 Version 1.4.0 * [MacUpdater](https://www.corecode.io/macupdater/) support diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index a97d2af..56409c8 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1 +1 @@ -Force a scan before updating with MacUpdater +Automatically accept the license by Apple updates diff --git a/VERSION b/VERSION index 347f583..9df886c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.4.1 +1.4.2 diff --git a/update.sh b/update.sh index bd27094..267251e 100755 --- a/update.sh +++ b/update.sh @@ -2,7 +2,7 @@ # Copyright (c) 2018-2022 Matteo Corti -VERSION=1.4.1 +VERSION=1.4.2 VERBOSE="" CLEAR="" @@ -170,9 +170,9 @@ fi # softwareupdates writes information messages to stderr # we try to filter the informational messages away if [ -n "${QUIET}" ]; then - COMMAND="( sudo softwareupdate -ia > /dev/null) 2>&1 | grep -v '^No\ updates\ available$'" + COMMAND="( sudo softwareupdate --install --all --agree-to-license > /dev/null) 2>&1 | grep -v '^No\ updates\ available$'" else - COMMAND='sudo softwareupdate -ia' + COMMAND='sudo softwareupdate --install --all --agree-to-license' fi run_command "${COMMAND}"