Created
July 20, 2017 22:49
-
-
Save anonymous/2c0fa88fb1e7b34c2ea3b7c756597c6e to your computer and use it in GitHub Desktop.
Update Mac Software script (super quicker than app store)
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
#!/usr/bin/env bash | |
softwareupdate -l | |
while true; do | |
echo "Do you wish to update all the above things?" | |
read -p "[y/n]? " yn | |
case $yn in | |
[Yy]* ) softwareupdate -i -a; break;; | |
[Nn]* ) exit;; | |
* ) echo "Please answer yes or no.";; | |
esac | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment