Permalink
Browse files

Add a check to FQ rvm_path

The installer script will fail with a moderately cryptic error if
the rvm_path is not fully qualified. This is becuase the various
"cd" commands do not take their relative position into account.

A better fix would likely be to fix the "cd" calls, but this is good
enough.
  • Loading branch information...
1 parent d5872bc commit 47cc6592c0a239fc464721d1d941ce61b16873f3 @tabletcorry tabletcorry committed Aug 9, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 binscripts/rvm-installer
View
@@ -312,6 +312,11 @@ done
true "${version:=head}"
+if [[ "$rvm_path" != /* ]]
+then
+ fail "The rvm install path must be fully qualified. Tried $rvm_path"
+fi
+
rvm_src_path="$rvm_path/src"
rvm_archives_path="$rvm_path/archives"
rvm_releases_url="https://rvm.beginrescueend.com/releases"

0 comments on commit 47cc659

Please sign in to comment.