Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Default rvm_path and rvm_prefix to exported environment variables the…

…n empty string.

Thanks to agreif for pointing out the issue.
  • Loading branch information...
commit 112d48e22e113eb724234963729882f5900fa6fc 1 parent 3c122d8
@wayneeseguin wayneeseguin authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 scripts/rvm
View
6 scripts/rvm
@@ -7,8 +7,6 @@
# Is RVM loaded as a shell function already?
if ! declare -f rvm > /dev/null || [[ ${rvm_reload_flag:-0} -eq 1 ]] ; then
- rvm_path="" ; rvm_prefix=""
-
if [[ ${rvm_ignore_rvmrc:-0} -eq 0 ]]; then
for rvmrc in /etc/rvmrc "$HOME/.rvmrc" ; do
@@ -37,7 +35,7 @@ if ! declare -f rvm > /dev/null || [[ ${rvm_reload_flag:-0} -eq 1 ]] ; then
if [[ -z "${rvm_selfcontained:-""}" ]]; then
if [[ $(id | \sed -e 's/(.*//' | awk -F= '{print $2}') -eq 0 || \
- -n "$rvm_prefix" && "$rvm_prefix" != "$HOME"/* ]]; then
+ -n "${rvm_prefix:-""}" && "$rvm_prefix" != "$HOME"/* ]]; then
rvm_selfcontained=0
@@ -49,7 +47,7 @@ if ! declare -f rvm > /dev/null || [[ ${rvm_reload_flag:-0} -eq 1 ]] ; then
fi
- if [[ -z "$rvm_prefix" ]] ; then
+ if [[ -z "${rvm_prefix:-""}" ]] ; then
if [[ "${rvm_selfcontained:-0}" = "0" ]] ; then
Please sign in to comment.
Something went wrong with that request. Please try again.