#!/bin/sh
RBENV_EVAL='eval "$(rbenv init -)"'
RBENV_VERSION='1.9.3-p448'

if brew list | grep -q 'rbenv'
then
  brew upgrade rbenv
else
  brew install rbenv
fi

if brew list | grep -q 'ruby-build'
then
  brew upgrade ruby-build
else
  brew install ruby-build
fi

if grep -q "$RBENV_EVAL" ~/.bash_profile
then
  echo "Skipping... "$RBENV_EVAL" already in bash_profile"
else
  echo $RBENV_EVAL >> ~/.bash_profile
fi

if rbenv versions | grep -q "$RBENV_VERSION"
then
  echo "$RBENV_VERSION already installed!"
else
  echo "******************************************"
  echo "Running: $RBENV_VERSION... This is gonna take a while, be patient"
  echo "******************************************"
  `$RBENV_VERSION`
fi

#!/bin/sh
RBENV_EVAL='eval "$(rbenv init -)"'
RBENV_VERSION='1.9.3-p448'

if brew list | grep -q 'rbenv'
then
  brew upgrade rbenv
else
  brew install rbenv
fi

if brew list | grep -q 'ruby-build'
then
  brew upgrade ruby-build
else
  brew install ruby-build
fi

if grep -q "$RBENV_EVAL" ~/.bash_profile
then
  echo "Skipping... "$RBENV_EVAL" already in bash_profile"
else
  echo $RBENV_EVAL >> ~/.bash_profile
fi

if rbenv versions | grep -q "$RBENV_VERSION"
then
  echo "$RBENV_VERSION already installed!"
else
  echo "******************************************"
  echo "Running: $RBENV_VERSION... This is gonna take a while, be patient"
  echo "******************************************"
  `rbenv install $RBENV_VERSION`
fi

Update rbenv installer It helps if you actually run rbenv install instead of just attempting to execute the name of the ruby version!
Update rbenv installer
It helps if you actually run rbenv install instead of just attempting to execute the name of the ruby version!
