Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Alter calculation of user_install detection.

  • Loading branch information...
commit 7805af859c51929f3febaf673b6235db2de0e2ac 1 parent 0007524
@wayneeseguin wayneeseguin authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/functions/installer
View
4 scripts/functions/installer
@@ -21,8 +21,7 @@ install_setup()
export PS4="+ \${BASH_SOURCE##\${rvm_path:-}} : \${FUNCNAME[0]:+\${FUNCNAME[0]}()} \${LINENO} > "
# TODO: Figure out a much better name for 'rvm_user_install'
- if [[ -z ${rvm_user_install:-} ]]; then
- if [[ $UID -eq 0 || -n "$rvm_prefix" && "$rvm_prefix" != "${HOME}"/* ]]; then
+ if [[ $UID -eq 0 || -n "${rvm_prefix:-}" && "$rvm_prefix" != "${HOME}"/* ]]; then
export rvm_user_install=0
else
export rvm_user_install=1
@@ -378,6 +377,7 @@ install_binscripts()
if [[ "${rvm_bin_path}" != "${rvm_path}/bin" ]] ; then
cp -f "${source_path}/binscripts/${file}" "${rvm_bin_path}/${file}"
fi
+
done
return 0
}
Please sign in to comment.
Something went wrong with that request. Please try again.