Skip to content

Commit

Permalink
Run juliaup gc if cleanup is enabled (#1031)
Browse files Browse the repository at this point in the history
refactor(juliaup): run juliaup gc if cleanup is enabled
  • Loading branch information
Laura7089 authored Feb 8, 2025
1 parent 224bb96 commit 4624f11
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/steps/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<()> {
Expand Down

0 comments on commit 4624f11

Please sign in to comment.