From 84b6414960fd202ac913944d5b509f7f846ada29 Mon Sep 17 00:00:00 2001 From: messense Date: Wed, 9 Aug 2023 21:42:29 +0800 Subject: [PATCH] Only set to non interactive mode when not already set --- src/upload.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/upload.rs b/src/upload.rs index a676ceadd..ca08197ec 100644 --- a/src/upload.rs +++ b/src/upload.rs @@ -64,7 +64,7 @@ impl PublishOpt { /// Set to non interactive mode if we're running on CI pub fn non_interactive_on_ci(&mut self) { - if env::var("CI").map(|v| v == "true").unwrap_or_default() { + if !self.non_interactive && env::var("CI").map(|v| v == "true").unwrap_or_default() { eprintln!("🎛️ Running in non-interactive mode on CI"); self.non_interactive = true; }