Updated softwareupdate expect
This commit is contained in:
parent
489e6f8a38
commit
4f8c8e2ff1
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ upgradeDarwin() {
|
|||
### Run upgrade process
|
||||
logg info 'Applying OS upgrades (if available)'
|
||||
expect -c "set timeout -1
|
||||
spawn sudo sh -c "sudo softwareupdate -i -a --agree-to-license" || logg error 'Failed to trigger a system update via sudo softwareupdate -i -a --agree-to-license'
|
||||
spawn sudo softwareupdate -i -a --agree-to-license
|
||||
expect \"Password:\"
|
||||
send \"${SUDO_PASSWORD}\r\"
|
||||
expect eof" &> /dev/null || EXIT_CODE=$?
|
||||
|
|
Loading…
Reference in a new issue