Add messages and fix bad -t argument error

This commit is contained in:
Henrik Lissner 2013-03-16 17:01:35 -04:00
parent a875368033
commit b8ee791ad7

View file

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/zsh
# Homebrew ##################### # Homebrew #####################
echo "\n* Updating homebrew"
brew update brew update
brew upgrade brew upgrade
@ -9,22 +10,26 @@ brew upgrade
# Make sure rvm is sourced properly # Make sure rvm is sourced properly
if [ -f ~/.rvm/scripts/rvm ]; then if [ -f ~/.rvm/scripts/rvm ]; then
[ "$(type -t rvm)" = "function" ] || source ~/.rvm/scripts/rvm [[ "$(type rvm)" =~ "function$" ]] || source ~/.rvm/scripts/rvm
fi fi
# Update all rubies and rubygems # Update all rubies and rubygems
for v in 1.9.3 1.8.7; do for v in 1.9.3 1.8.7; do
echo "\n* Updating ruby $v"
rvm use $v rvm use $v
gem update --system gem update --system
gem update gem update
done done
# Update system ruby # Update system ruby
echo "\n* Updating system ruby"
rvm use system rvm use system
sudo gem update --system sudo gem update --system
sudo gem update sudo gem update
# Vim ########################## # Vim ##########################
echo "[NOTICE] Updating vim..." echo "\n* Updating vim..."
vim +BundleInstall! +BundleClean! +q +q vim +BundleInstall! +BundleClean! +q +q
echo "\nDone!"