Fix TypeError during rbenv ruby installation when rbenv is not found

This commit is contained in:
Kirill Goncharov 2017-12-10 12:58:30 +03:00
parent 8e14bc3941
commit bfd0972d25

View file

@ -245,7 +245,7 @@ def install_ruby(ruby, runas=None):
ret = {}
ret = _rbenv_exec(['install', ruby], env=env, runas=runas, ret=ret)
if ret['retcode'] == 0:
if ret is not False and ret['retcode'] == 0:
rehash(runas=runas)
return ret['stderr']
else: