diff --git a/src/config.rs b/src/config.rs index fcaed93b3ca..1647ac849be 100644 --- a/src/config.rs +++ b/src/config.rs @@ -418,6 +418,10 @@ impl<'a> Cfg<'a> { } pub(crate) fn get_self_update_mode(&self) -> Result { + if self.process.var("CI").is_ok() { + return Ok(SelfUpdateMode::Disable); + } + self.settings_file.with(|s| { Ok(match s.auto_self_update { Some(mode) => mode,