Commit c202d8a

mo khan <mo@mokhan.ca>
2015-05-26 00:44:00
use $HOME in vagrant provision script.
1 parent 080f7ea
Changed files (1)
bin/bootstrap-vagrant-user.sh
@@ -1,11 +1,12 @@
-git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
-echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
-echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
-source ~/.bash_profile
-git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
-git clone https://github.com/tpope/rbenv-ctags.git ~/.rbenv/plugins/rbenv-ctags
-git clone https://github.com/rkh/rbenv-update.git ~/.rbenv/plugins/rbenv-update
-git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash
+rm -fr $HOME/.rbenv
+git clone https://github.com/sstephenson/rbenv.git $HOME/.rbenv
+echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> $HOME/.bash_profile
+echo 'eval "$(rbenv init -)"' >> $HOME/.bash_profile
+source $HOME/.bash_profile
+git clone https://github.com/sstephenson/ruby-build.git $HOME/.rbenv/plugins/ruby-build
+git clone https://github.com/tpope/rbenv-ctags.git $HOME/.rbenv/plugins/rbenv-ctags
+git clone https://github.com/rkh/rbenv-update.git $HOME/.rbenv/plugins/rbenv-update
+git clone https://github.com/sstephenson/rbenv-gem-rehash.git $HOME/.rbenv/plugins/rbenv-gem-rehash
 rbenv update
 rbenv install 2.2.2
 rbenv global 2.2.2