Skip to content

Instantly share code, notes, and snippets.

@Sutto
Created August 4, 2010 16:34
Show Gist options
  • Save Sutto/508401 to your computer and use it in GitHub Desktop.
Save Sutto/508401 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
[[ -f /etc/rvmrc ]] && source /etc/rvmrc
[[ -f "$HOME/.rvmrc" ]] && source "$HOME/.rvmrc"
rvm_path="${rvm_path:-$HOME/.rvm}"
export rvm_path
mkdir -p "$rvm_path/src/"
builtin cd "$rvm_path/src"
rm -rf ./rvm/
git clone --depth 1 git://github.com/wayneeseguin/rvm.git
builtin cd rvm
command -v dos2unix >/dev/null && dos2unix scripts/* >/dev/null 2>&1
bash ./scripts/install "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment