Skip to content

Instantly share code, notes, and snippets.

@pietern
Created January 18, 2013 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pietern/4566793 to your computer and use it in GitHub Desktop.
Save pietern/4566793 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
[ -n "$DEBUG" ] && set -x
# rbenv
if [ ! -d "$HOME/.rbenv" ]
then
pushd $HOME
git clone git://github.com/sstephenson/rbenv.git .rbenv
popd
else
pushd $HOME/.rbenv
git pull
popd
fi
# ruby-build
pushd $HOME/.rbenv
mkdir -p plugins
cd plugins
if [ ! -d ruby-build ]
then
git clone git://github.com/sstephenson/ruby-build.git ruby-build
else
pushd ruby-build
git pull
popd
fi
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment