Skip to content

Commit

Permalink
Allow to actually set an install path other than /usr/local/rvm
Browse files Browse the repository at this point in the history
  • Loading branch information
meineerde committed Mar 31, 2011
1 parent d896693 commit bc0be0b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions binscripts/rvm-installer
Expand Up @@ -140,16 +140,6 @@ else
fi
fi

export PS4="+ \${BASH_SOURCE##\${rvm_path:-}} : \${FUNCNAME[0]:+\${FUNCNAME[0]}()} \${LINENO} > "

rvm_src_path="$rvm_path/src"
rvm_archives_path="$rvm_path/archives"
rvm_releases_url="http://rvm.beginrescueend.com/releases"

for dir in "$rvm_src_path" "$rvm_archives_path" ; do
[[ ! -d "$dir" ]] && mkdir -p "$dir/"
done

# Parse CLI arguments.
while [[ $# -gt 0 ]] ; do
token="$1" ; shift
Expand Down Expand Up @@ -215,6 +205,16 @@ done

true "${version:=head}"

export PS4="+ \${BASH_SOURCE##\${rvm_path:-}} : \${FUNCNAME[0]:+\${FUNCNAME[0]}()} \${LINENO} > "

rvm_src_path="$rvm_path/src"
rvm_archives_path="$rvm_path/archives"
rvm_releases_url="http://rvm.beginrescueend.com/releases"

for dir in "$rvm_src_path" "$rvm_archives_path" ; do
[[ ! -d "$dir" ]] && mkdir -p "$dir/"
done

# Perform the actual installation, first we obtain the source using whichever
# means was specified, if any. Defaults to head.
case "${version}" in
Expand Down

0 comments on commit bc0be0b

Please sign in to comment.