Run juliaup gc if cleanup is enabled (#1031)
refactor(juliaup): run juliaup gc if cleanup is enabled
This commit is contained in:
committed by
GitHub
parent
224bb96a98
commit
4624f11ba5
@@ -296,7 +296,13 @@ pub fn run_juliaup(ctx: &ExecutionContext) -> Result<()> {
|
|||||||
.status_checked()?;
|
.status_checked()?;
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx.run_type().execute(&juliaup).arg("update").status_checked()
|
ctx.run_type().execute(&juliaup).arg("update").status_checked()?;
|
||||||
|
|
||||||
|
if ctx.config().cleanup() {
|
||||||
|
ctx.run_type().execute(&juliaup).arg("gc").status_checked()?;
|
||||||
|
}
|
||||||
|
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn run_choosenim(ctx: &ExecutionContext) -> Result<()> {
|
pub fn run_choosenim(ctx: &ExecutionContext) -> Result<()> {
|
||||||
|
|||||||
Reference in New Issue
Block a user