diff --git a/src/config.rs b/src/config.rs index 88105e3c..a3ecfc48 100644 --- a/src/config.rs +++ b/src/config.rs @@ -83,8 +83,9 @@ impl ClientConfig { config_yml.device_id = Some(device_id); let new_config = serde_yaml::to_string(&config_yml)?; - let mut config_file = fs::File::create(&paths.config_file_path)?; - write!(config_file, "{}", new_config)?; + if let Ok(mut config_file) = fs::File::create(&paths.config_file_path) { + write!(config_file, "{}", new_config)? + } Ok(()) }