mirror of
https://github.com/azure/login.git
synced 2026-03-15 09:20:56 -04:00
Added changes for review comments
This commit is contained in:
@@ -10,6 +10,10 @@ export default class PowerShellToolRunner {
|
||||
}
|
||||
}
|
||||
|
||||
static async executePowerShellScriptBlock(scriptBlock: string, options: any = {}) {
|
||||
await exec.exec(`${PowerShellToolRunner.psPath} -Command`, [scriptBlock], options)
|
||||
}
|
||||
|
||||
static async executePowerShellCommand(command: string, options: any = {}) {
|
||||
await exec.exec(`"${PowerShellToolRunner.psPath}" -Command "${command}"`, [], options);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user