Merge pull request #20454 from scream3/develop

RVM user-only installation is broken
This commit is contained in:
Thomas S Hatch 2015-02-06 10:35:32 -07:00
commit 3b1ff444d4

View File

@ -29,7 +29,7 @@ def _get_rvm_location(runas=None):
if runas:
runas_home = os.path.expanduser('~{0}'.format(runas))
rvmpath = '{0}/.rvm/bin/rvm'.format(runas_home)
if os.path.isdir(rvmpath):
if os.path.exists(rvmpath):
return rvmpath
return '/usr/local/rvm/bin/rvm'