Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Set $rvm_prefix to actually allow to override the target $rvm_path

  • Loading branch information...
commit dfcf503e751e45f163e94c47e69bd9443f79114c 1 parent bc0be0b
@meineerde meineerde authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  binscripts/rvm-installer
View
3  binscripts/rvm-installer
@@ -210,6 +210,7 @@ export PS4="+ \${BASH_SOURCE##\${rvm_path:-}} : \${FUNCNAME[0]:+\${FUNCNAME[0]}(
rvm_src_path="$rvm_path/src"
rvm_archives_path="$rvm_path/archives"
rvm_releases_url="http://rvm.beginrescueend.com/releases"
+rvm_prefix="$(dirname $rvm_path)/"
for dir in "$rvm_src_path" "$rvm_archives_path" ; do
[[ ! -d "$dir" ]] && mkdir -p "$dir/"
@@ -244,4 +245,4 @@ flags=""
[[ ${rvm_debug_flag:-0} -eq 1 ]] && flags="$flags --debug"
# Now we yield to the RVM installer.
-exec ./scripts/install ${flags} --path "$rvm_path"
+exec ./scripts/install ${flags} --prefix "$rvm_prefix" --path "$rvm_path"
Please sign in to comment.
Something went wrong with that request. Please try again.