Add rbenv installation to setup.sh

This commit is contained in:
Youngkyun 2017-10-22 13:54:03 +09:00
parent b54a4a336f
commit 08711ca80d
No known key found for this signature in database
GPG Key ID: 07AB560C7F798018

View File

@ -18,6 +18,13 @@ case "$(uname -s)" in
Darwin) Darwin)
echo 'Mac OS X' echo 'Mac OS X'
#brew install sshpass #brew install sshpass
rbenv -v
if [ $? -ne 0 ]; then
echo 'Install rbenv'
brew install rbenv
fi
rbenv install 2.3.3 && rbenv rehash
rbenv local 2.3.3
install install
setup setup
;; ;;
@ -32,6 +39,16 @@ case "$(uname -s)" in
# echo "os : ubuntu, use apt-get install" # echo "os : ubuntu, use apt-get install"
# apt-get install sshpass # apt-get install sshpass
#fi #fi
rbenv -v
if [ $? -ne 0 ]; then
echo 'Install rbenv'
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
fi
rbenv install 2.3.3 && rbenv rehash
rbenv local 2.3.3
install install
setup setup
;; ;;