Add messages and fix bad -t argument error
This commit is contained in:
parent
a875368033
commit
b8ee791ad7
11
bin/update
11
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!"
|
||||
|
|
Loading…
Reference in a new issue