mirror of
https://github.com/Microsoft/vscode
synced 2024-07-17 11:07:22 +00:00
parent
3c7fc6d6a0
commit
a4a6607ceb
|
@ -324,7 +324,7 @@ export async function createTask(packageManager: string, script: NpmTaskDefiniti
|
|||
const result: (string | ShellQuotedString)[] = new Array(cmd.length);
|
||||
for (let i = 0; i < cmd.length; i++) {
|
||||
if (/\s/.test(cmd[i])) {
|
||||
result[i] = { value: `${cmd[i]}`, quoting: ShellQuoting.Strong };
|
||||
result[i] = { value: cmd[i], quoting: cmd[i].includes('--') ? ShellQuoting.Weak : ShellQuoting.Strong };
|
||||
} else {
|
||||
result[i] = cmd[i];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue