Latest
This commit is contained in:
parent
dde63cc16a
commit
5dd6332389
1 changed files with 37 additions and 33 deletions
|
@ -131,9 +131,11 @@ upgradeDarwin() {
|
|||
fi
|
||||
|
||||
### Run upgrade process
|
||||
logg info 'Listing available OS upgrades' && softwareupdate -l
|
||||
logg info 'Applying OS upgrades (if available)'
|
||||
logg info 'This may take awhile..'
|
||||
HEY="$(softwareupdate -l)"
|
||||
logg info 'Listing available OS upgrades'
|
||||
UPDATE_CHECK="$(softwareupdate -l)"
|
||||
if [ "$UPDATE_CHECK" != "No new software available." ]; then
|
||||
logg info 'Applying OS upgrades (if available). This may take awhile..'
|
||||
expect -c "set timeout -1
|
||||
spawn sudo softwareupdate -i -a --agree-to-license
|
||||
expect \"Password:\"
|
||||
|
@ -170,6 +172,8 @@ upgradeDarwin() {
|
|||
else
|
||||
logg info 'No reboot required for softwareupdate'
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -f "$HOME/.zshrc" ]; then
|
||||
logg info 'Ensuring provision kickstart script is removed from ~/.zshrc'
|
||||
if command -v gsed > /dev/null; then
|
||||
|
|
Loading…
Reference in a new issue