build: Only invoke constrain_unix_permissions on UNIX-like builds using #[cfg].
This commit is contained in:
parent
09f9fd3703
commit
3ad70ce318
@ -104,6 +104,7 @@ fn setup(args: SetupArgs) -> Result<(), std::io::Error> {
|
|||||||
let filled_in_config = fill_config_template(config_template, args);
|
let filled_in_config = fill_config_template(config_template, args);
|
||||||
let path = get_bot_config_path();
|
let path = get_bot_config_path();
|
||||||
std::fs::write(&path, filled_in_config)?;
|
std::fs::write(&path, filled_in_config)?;
|
||||||
|
#[cfg(unix)]
|
||||||
constrain_unix_permissions(&path)?;
|
constrain_unix_permissions(&path)?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user