diff --git a/src/steps/generic.rs b/src/steps/generic.rs index 5b229dad..643a3d78 100644 --- a/src/steps/generic.rs +++ b/src/steps/generic.rs @@ -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<()> {