fix: config existence check for --fresh sandboxes
This commit is contained in:
@@ -524,6 +524,10 @@ impl Config {
|
|||||||
let config_path = paths::config_file();
|
let config_path = paths::config_file();
|
||||||
|
|
||||||
if env::var_os(SANDBOX_ENV_FLAG).is_some() {
|
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)?;
|
let (config, _) = Self::load_from_file(&config_path)?;
|
||||||
return Ok(config);
|
return Ok(config);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user