Skip to content

Commit 6d025cb

Browse files
committed
fix: disabling flagprotection from shescape
1 parent 7509dc7 commit 6d025cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/sub-process.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { quoteAll } from 'shescape/stateless';
44
export function execute(
55
command: string,
66
args: string[] = [],
7-
options?: { cwd?: string }
7+
options?: { cwd?: string },
88
): Promise<string> {
99
const spawnOptions: {
1010
shell: boolean;
@@ -14,7 +14,7 @@ export function execute(
1414
spawnOptions.cwd = options.cwd;
1515
}
1616

17-
args = quoteAll(args, spawnOptions);
17+
args = quoteAll(args, { ...spawnOptions, flagProtection: false });
1818

1919
return new Promise((resolve, reject) => {
2020
let stdout = '';

0 commit comments

Comments
 (0)