Code refactor

This commit is contained in:
Akshaya M
2020-03-16 17:01:10 +05:30
parent 3e94d97948
commit 7fc98cfa3d
11 changed files with 204 additions and 12 deletions

View File

@@ -11,10 +11,6 @@ export default class PowerShellToolRunner {
}
static async executePowerShellCommand(command: string, options: any = {}) {
try {
await exec.exec(`"${PowerShellToolRunner.psPath}" -Command "${command}"`, [], options);
} catch(error) {
throw new Error(error);
}
await exec.exec(`"${PowerShellToolRunner.psPath}" -Command "${command}"`, [], options);
}
}