Fix pyenv: no such command 'update' (#860)
pyenv: fixes #849 Co-authored-by: Lucas Parzianello <lucaspar@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
16e6db0def
commit
07118fa0d2
@@ -609,6 +609,10 @@ pub fn run_pyenv(ctx: &ExecutionContext) -> Result<()> {
|
|||||||
return Err(SkipStep("pyenv is not a git repository".to_string()).into());
|
return Err(SkipStep("pyenv is not a git repository".to_string()).into());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !pyenv_dir.join("plugins").join("pyenv-update").exists() {
|
||||||
|
return Err(SkipStep("pyenv-update plugin is not installed".to_string()).into());
|
||||||
|
}
|
||||||
|
|
||||||
ctx.run_type().execute(pyenv).arg("update").status_checked()
|
ctx.run_type().execute(pyenv).arg("update").status_checked()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user