Skip to content

Commit

Permalink
fix(dre): without confirmation used to run always in dry-run mode (#641)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaMilosa committed Jul 18, 2024
1 parent 25a0ce6 commit 8a867b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rs/cli/src/ic_admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ impl IcAdminWrapper {
return self._exec(cmd, opts, true).await;
}

// If --yes was not specified, ask the user if they want to proceed
// If --yes was specified, don't ask the user if they want to proceed
if !self.proceed_without_confirmation {
self._exec(cmd.clone(), opts.clone(), true).await?;
self._exec(cmd.clone(), opts.clone(), false).await?;
}

if self.proceed_without_confirmation || Confirm::new().with_prompt("Do you want to continue?").default(false).interact()? {
Expand Down

0 comments on commit 8a867b7

Please sign in to comment.