mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Run command for execution policy with -Command
This commit is contained in:
parent
ff16530314
commit
ad32a8d9be
1 changed files with 1 additions and 1 deletions
|
|
@ -258,7 +258,7 @@ export function validatePowerShellExecutionPolicy(shellExecutableName) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Security: Use literal command string, no interpolation
|
// Security: Use literal command string, no interpolation
|
||||||
const policy = execSync("Get-ExecutionPolicy", {
|
const policy = execSync('-Command "Get-ExecutionPolicy"', {
|
||||||
encoding: "utf8",
|
encoding: "utf8",
|
||||||
shell: shellExecutableName,
|
shell: shellExecutableName,
|
||||||
timeout: 5000, // 5 second timeout
|
timeout: 5000, // 5 second timeout
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue