From 2fc154993c6457537a02078d1d15cbd81ac6f869 Mon Sep 17 00:00:00 2001 From: Mark Robert Henderson Date: Sat, 1 Oct 2011 20:25:30 -0500 Subject: [PATCH] Run softwareupdate along with oh-my-zsh update --- tools/check_for_upgrade.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh index e1e4eb99f..7cae9d056 100644 --- a/tools/check_for_upgrade.sh +++ b/tools/check_for_upgrade.sh @@ -26,6 +26,14 @@ then then /bin/sh $ZSH/tools/upgrade.sh # update the zsh file + + # Run software update if we're on a mac + # reccomended setting - run: softwareupdate schedule off + if [ uname -a | cut -d " " -f 1= "Darwin" ]; + then + sudo softwareupdate -l --verbose + fi + _update_zsh_update fi fi