mirror of
https://github.com/openai/codex.git
synced 2026-09-08 15:50:34 +00:00
Fix non-Windows exec policy compile
This commit is contained in:
@@ -256,6 +256,8 @@ impl ExecPolicyManager {
|
||||
PowershellCommandSequenceParseMode::ExecPolicy,
|
||||
)
|
||||
.filter(|commands| !commands.is_empty());
|
||||
#[cfg(not(windows))]
|
||||
let powershell_commands: Option<Vec<Vec<String>>> = None;
|
||||
let (commands, used_complex_parsing) = if let Some(commands) = powershell_commands.clone() {
|
||||
(commands, false)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user