Fix wrong check for rvm script existence

This commit is contained in:
Andrii Krykunenko 2015-02-06 12:15:06 +01:00 committed by rallytime
parent 9246f64f9b
commit f1aa6931a4

View File

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