mirror of
https://github.com/azure/login.git
synced 2026-06-06 00:17:07 +00:00
fix: wrap PowerShellToolRunner.psPath in "" (#31)
This commit is contained in:
parent
358ee2b773
commit
eeeade0627
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue