forked from rvm/rvm
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge and update to rvm latest
- Loading branch information
Showing
166 changed files
with
26,507 additions
and
2,026 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ site/.sass-cache/ | |
site/tmp/dependencies/ | ||
site/tmp/ | ||
tags | ||
.*.swp | ||
tmp/ |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env bash | ||
|
||
__rvm_shell_lookup_script() { | ||
local relative_scripts_dir="$(dirname -- "$(dirname -- "$0")")/scripts" | ||
for directory in "$rvm_scripts_path" "$HOME/.rvm/scripts" "/usr/local/rvm/scripts" "$relative_scripts_dir"; do | ||
if [[ -d "$directory" && -s "$directory/rvm" ]]; then | ||
echo "$directory/rvm" | ||
return | ||
fi | ||
done | ||
} | ||
|
||
# If the first argument isn't -c, remove it and set | ||
# it to the ruby string value. | ||
if [[ -n "$1" && -n "$(echo "$1" | grep -v '^-')" ]]; then | ||
rvm_shell_ruby_string="$1" | ||
shift | ||
fi | ||
|
||
if [[ -n "$rvm_shell_ruby_string" ]]; then | ||
rvm_shell_rvm_path="$(__rvm_shell_lookup_script)" | ||
if [[ -n "$rvm_shell_rvm_path" ]]; then | ||
source "$rvm_shell_rvm_path" | ||
rvm "$rvm_shell_ruby_string" | ||
if [[ "$?" -gt 0 ]]; then | ||
echo "Error: RVM was unable to use '#$rvm_shell_ruby_string'" 1>&2 | ||
exit 1 | ||
fi | ||
fi | ||
fi | ||
|
||
exec bash "$@" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
if [[ -f /etc/rvmrc ]] ; then source /etc/rvmrc ; fi | ||
if [[ -f "$HOME/.rvmrc" ]] ; then source "$HOME/.rvmrc" ; fi | ||
rvm_path="${rvm_path:-$HOME/.rvm}" | ||
mkdir -p $rvm_path/src/ | ||
cd $rvm_path/src | ||
|
||
rm -rf ./rvm/ && git clone --depth 1 git://github.com/wayneeseguin/rvm.git | ||
cd rvm | ||
# v v v This is a godo idea however it does not preserve the executible bit. | ||
# Needs more thought, perhaps a simple sed instead. | ||
# dos2unix scripts/* >/dev/null 2>&1 | ||
bash scripts/install |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [[ -f /etc/rvmrc ]] ; then source /etc/rvmrc ; fi | ||
if [[ -f "$HOME/.rvmrc" ]] ; then source "$HOME/.rvmrc" ; fi | ||
rvm_path="${rvm_path:-$HOME/.rvm}" | ||
mkdir -p $rvm_path/src/ | ||
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" | ||
|
||
cd "rvm-${stable_version}" | ||
|
||
# v v v This is a godo idea however it does not preserve the executible bit. | ||
# Needs more thought, perhaps a simple sed instead. | ||
#dos2unix scripts/* >/dev/null 2>&1 | ||
|
||
bash scripts/install |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
prefix="PATH='$PATH'" | ||
if [[ ! -z "$BUNDLE_PATH" ]] ; then prefix="BUNDLE_PATH='$BUNDLE_PATH' $prefix" ; fi | ||
if [[ ! -z "$GEM_HOME" ]] ; then prefix="GEM_HOME='$GEM_HOME' $prefix" ; fi | ||
if [[ ! -z "$GEM_PATH" ]] ; then prefix="GEM_PATH='$GEM_PATH' $prefix" ; fi | ||
|
||
eval "sudo" "/usr/bin/env $prefix $@" | ||
exec sudo -E "$@" |
Oops, something went wrong.