Skip to content

Commit

Permalink
Automatically accept the license by Apple updates
Browse files Browse the repository at this point in the history
  • Loading branch information
matteocorti committed Oct 6, 2022
1 parent 2c935a0 commit f1701d2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2022-10-06 Matteo Corti <matteo@corti.li>

* update.sh: Added --agree-to-license to softwareupdate

2022-07-01 Matteo Corti <matteo@corti.li>

* update.sh: Some more spacing and MS before MacUpdater
Expand Down
4 changes: 3 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Force a scan before updating with MacUpdater
Automatically accept the license by Apple updates
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.1
1.4.2
6 changes: 3 additions & 3 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Copyright (c) 2018-2022 Matteo Corti <matteo@corti.li>

VERSION=1.4.1
VERSION=1.4.2

VERBOSE=""
CLEAR=""
Expand Down Expand Up @@ -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}"

Expand Down

0 comments on commit f1701d2

Please sign in to comment.