Skip to content

Commit

Permalink
fix root 'user' installation
Browse files Browse the repository at this point in the history
  • Loading branch information
mpapis committed Jun 29, 2011
1 parent ef4cb0f commit 713ce85
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/functions/installer
Expand Up @@ -24,14 +24,16 @@ install_setup()

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

# TODO: Figure out a much better name for 'rvm_user_install'
# TODO: Figure out a much better name for 'rvm_user_install_flag'
# mpapis: self contained was a quite good name
if (( UID == 0 )) ||
[[ -n "${rvm_prefix:-}" && "${rvm_prefix:-}" != "${HOME}" ]]
then
export rvm_user_install_flag=0
true "${rvm_user_install_flag:=0}"
else
export rvm_user_install_flag=1
true "${rvm_user_install_flag:=1}"
fi
export rvm_user_install_flag

unset rvm_auto_flag
}
Expand Down

0 comments on commit 713ce85

Please sign in to comment.