-
-
Save darrennolan/683fc703dd22157f89a8f0330d53b987 to your computer and use it in GitHub Desktop.
Update Mac Software script (super quicker than app store)
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
#!/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