Skip to content

Instantly share code, notes, and snippets.

@darrennolan
Forked from anonymous/update-mac.sh
Created July 27, 2017 01:47
Show Gist options
  • Save darrennolan/683fc703dd22157f89a8f0330d53b987 to your computer and use it in GitHub Desktop.
Save darrennolan/683fc703dd22157f89a8f0330d53b987 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