From b8ee791ad75363334a3afb14079f25b03bf532f0 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 16 Mar 2013 17:01:35 -0400 Subject: [PATCH] Add messages and fix bad -t argument error --- bin/update | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/bin/update b/bin/update index 6d46993a..6eaf22bd 100755 --- a/bin/update +++ b/bin/update @@ -1,6 +1,7 @@ -#!/bin/bash +#!/bin/zsh # Homebrew ##################### +echo "\n* Updating homebrew" brew update brew upgrade @@ -9,22 +10,26 @@ brew upgrade # Make sure rvm is sourced properly if [ -f ~/.rvm/scripts/rvm ]; then - [ "$(type -t rvm)" = "function" ] || source ~/.rvm/scripts/rvm + [[ "$(type rvm)" =~ "function$" ]] || source ~/.rvm/scripts/rvm fi # Update all rubies and rubygems for v in 1.9.3 1.8.7; do + echo "\n* Updating ruby $v" rvm use $v gem update --system gem update done # Update system ruby +echo "\n* Updating system ruby" rvm use system sudo gem update --system sudo gem update # Vim ########################## -echo "[NOTICE] Updating vim..." +echo "\n* Updating vim..." vim +BundleInstall! +BundleClean! +q +q + +echo "\nDone!"