Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow to actually set an install path other than /usr/local/rvm

  • Loading branch information...
commit bc0be0b76123b8d9c5236f385a89b90dcd8f251f 1 parent d896693
@meineerde meineerde authored
Showing with 10 additions and 10 deletions.
  1. +10 −10 binscripts/rvm-installer
View
20 binscripts/rvm-installer
@@ -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
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.