Skip to content

Instantly share code, notes, and snippets.

Created July 20, 2017 22:49
Show Gist options
  • Save anonymous/2c0fa88fb1e7b34c2ea3b7c756597c6e to your computer and use it in GitHub Desktop.
Save anonymous/2c0fa88fb1e7b34c2ea3b7c756597c6e to your computer and use it in GitHub Desktop.
Update Mac Software script (super quicker than app store)
#!/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