fix: wrap PowerShellToolRunner.psPath in "" (#31)

This commit is contained in:
JasonTheDeveloper
2020-05-13 15:36:52 +10:00
committed by GitHub
parent 358ee2b773
commit eeeade0627
2 changed files with 2 additions and 2 deletions

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)
}
}