Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
result=$(/usr/bin/defaults read /Library/Preferences/com.apple.commerce AutoUpdateRestartRequired)
if [ "$result" != 1 ]
then
defaults write /Library/Preferences/com.apple.commerce AutoUpdateRestartRequired -bool TRUE
result=$(/usr/bin/defaults read /Library/Preferences/com.apple.commerce AutoUpdateRestartRequired)
fi
echo "<result>$result</result>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment