Created
February 6, 2017 18:49
-
-
Save kitzy/cef712c69c3df327778e3fc68e97611b 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
#!/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