Skip to content

Commit

Permalink
added --no-scan flag to download and install commands
Browse files Browse the repository at this point in the history
- added `--no-scan` flag to `--download` and `--install` commands (avoids repeatedly checking for updates after initial `softwareupdate --list, speeding up script runtime)
  • Loading branch information
mpanighetti committed Apr 11, 2019
1 parent a92811a commit 501657e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions payload/Library/Scripts/install_or_defer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ check_for_updates () {
# Download updates (all updates if a restart is required for any, otherwise
# just recommended updates).
echo "Caching $installWhich system updates..."
softwareupdate --download --$installWhich
softwareupdate --download --$installWhich --no-scan

}

Expand Down Expand Up @@ -186,7 +186,7 @@ run_updates () {

echo "Running $installWhich system updates..."
"$jamfHelper" -windowType "hud" -windowPosition "ur" -icon "$LOGO" -title "$MSG_UPDATING_HEADING" -description "$MSG_UPDATING" -lockHUD &
updateOutputCapture="$(softwareupdate --install --$installWhich 2>&1)"
updateOutputCapture="$(softwareupdate --install --$installWhich --no-scan 2>&1)"
echo "Finished running updates."
killall jamfHelper 2>/dev/null
clean_up
Expand Down

0 comments on commit 501657e

Please sign in to comment.