Run juliaup gc if cleanup is enabled (#1031)

refactor(juliaup): run juliaup gc if cleanup is enabled
This commit is contained in:
Laura Demkowicz-Duffy
2025-02-08 06:15:25 +00:00
committed by GitHub
parent 224bb96a98
commit 4624f11ba5

View File

@@ -296,7 +296,13 @@ pub fn run_juliaup(ctx: &ExecutionContext) -> Result<()> {
.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<()> {