feat: clean scoop cache if cleanup is enabled (#909)

This commit is contained in:
SteveLauC
2024-09-16 15:27:01 +08:00
committed by GitHub
parent 25d3a816b4
commit e32246f172

View File

@@ -57,6 +57,10 @@ pub fn run_scoop(ctx: &ExecutionContext) -> Result<()> {
if ctx.config().cleanup() {
ctx.run_type().execute(&scoop).args(["cleanup", "*"]).status_checked()?;
ctx.run_type()
.execute(&scoop)
.args(["cache", "rm", "-a"])
.status_checked()?
}
Ok(())