Created
August 30, 2016 19:38
-
-
Save macjustice/549886b3ecdebd38e072dde221a6d416 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
munkitest () { # Optional first arg is a ClientID to check | |
if [[ $# == 0 ]]; then | |
sudo managedsoftwareupdate --checkonly --munkipkgsonly -vv | |
else | |
echo "Checking updates for $1" | |
sudo managedsoftwareupdate --checkonly --munkipkgsonly -vv --id=$1 | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put this in your .bashrc/.zshrc and smoke it