Fix non-Windows exec policy compile

This commit is contained in:
iceweasel-oai
2026-04-29 17:16:36 -07:00
parent cd822ab0e1
commit 57a1d792af

View File

@@ -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 {