Created
October 18, 2016 22:32
-
-
Save smashism/5caaff852c3300924757f0d6d128fa75 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
# | |
# software_update_count.sh | |
# gets amount of updates in integer for EA <> Smart Computer group | |
# github.com/smashism | |
# last update: 2016-10-18 | |
# | |
# get LastUpdatesAvailable | |
updates=`defaults read /Library/Preferences/com.apple.SoftwareUpdate.plist LastUpdatesAvailable` | |
echo "<result>$updates</result>" | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment