1
0
Fork 0
mirror of synced 2026-06-05 17:28:19 +00:00

changes in PowerShellToolRunner (#32)

This commit is contained in:
aksm-ms 2020-05-13 11:19:32 +05:30 committed by GitHub
commit 45b646fbba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -28,7 +28,7 @@ class PowerShellToolRunner {
}
static executePowerShellScriptBlock(scriptBlock, options = {}) {
return __awaiter(this, void 0, void 0, function* () {
yield exec.exec(`${PowerShellToolRunner.psPath} -Command`, [scriptBlock], options);
yield exec.exec(`"${PowerShellToolRunner.psPath}" -Command`, [scriptBlock], options);
});
}
}

View file

@ -87,4 +87,4 @@ function executeAzCliCommand(command, silent) {
}
});
}
main();
main();

View file

@ -11,6 +11,6 @@ export default class PowerShellToolRunner {
}
static async executePowerShellScriptBlock(scriptBlock: string, options: any = {}) {
await exec.exec(`${PowerShellToolRunner.psPath} -Command`, [scriptBlock], options)
await exec.exec(`"${PowerShellToolRunner.psPath}" -Command`, [scriptBlock], options)
}
}