Skip to content

Commit

Permalink
fix: --yes option for protonup
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC committed Sep 30, 2023
1 parent b3f152b commit 234d732
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/steps/os/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,12 @@ pub fn run_protonup_update(ctx: &ExecutionContext) -> Result<()> {

print_separator("protonup");

ctx.run_type().execute(protonup).status_checked()?;
let mut cmd = ctx.run_type().execute(protonup);
if ctx.config().yes(Step::Protonup) {
cmd.arg("--yes");
}
cmd.status_checked()?;

Ok(())
}

Expand Down

0 comments on commit 234d732

Please sign in to comment.