diff --git a/src/config/mod.rs b/src/config/mod.rs index ef0384e..93d8936 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -524,6 +524,10 @@ impl Config { let config_path = paths::config_file(); if env::var_os(SANDBOX_ENV_FLAG).is_some() { + if !config_path.exists() { + create_config_file(&config_path).await?; + } + let (config, _) = Self::load_from_file(&config_path)?; return Ok(config); }