mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-03 13:10:27 +00:00
fix(exec): recognize PowerShell encoded commands
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
export const POSIX_INLINE_COMMAND_FLAGS = new Set(["-lc", "-c", "--command"]);
|
||||
export const POWERSHELL_INLINE_COMMAND_FLAGS = new Set(["-c", "-command", "--command"]);
|
||||
export const POWERSHELL_INLINE_COMMAND_FLAGS = new Set([
|
||||
"-c",
|
||||
"-command",
|
||||
"--command",
|
||||
"-encodedcommand",
|
||||
"-enc",
|
||||
"-e",
|
||||
]);
|
||||
|
||||
export function resolveInlineCommandMatch(
|
||||
argv: string[],
|
||||
|
||||
Reference in New Issue
Block a user