From 8cd6c7110ebe9c1fa6dc83dec9bdf3c242b52af4 Mon Sep 17 00:00:00 2001 From: nikolamilosa Date: Thu, 18 Jul 2024 02:47:25 +0200 Subject: [PATCH] fixing dre without confirmation --- rs/cli/src/ic_admin.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rs/cli/src/ic_admin.rs b/rs/cli/src/ic_admin.rs index ada303add..304c1b164 100644 --- a/rs/cli/src/ic_admin.rs +++ b/rs/cli/src/ic_admin.rs @@ -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()? {