Created
August 5, 2010 10:59
-
-
Save Sutto/509556 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
[[ -f /etc/rvmrc ]] && source /etc/rvmrc | |
[[ -f "$HOME/.rvmrc" ]] && source "$HOME/.rvmrc" | |
rvm_path="${rvm_path:-"$HOME/.rvm"}" | |
mkdir -p "$rvm_path/src/" | |
builtin cd "$rvm_path/src" | |
stable_version="$(curl -B http://rvm.beginrescueend.com/releases/stable-version.txt 2>/dev/null)" | |
echo "rvm-${stable_version}" | |
curl -L "http://rvm.beginrescueend.com/releases/rvm-${stable_version}.tar.gz" -o "rvm-${stable_version}.tar.gz" | |
tar zxf "rvm-${stable_version}.tar.gz" | |
builtin cd "rvm-${stable_version}" | |
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