Skip to content

Commit 45b646f

Browse files
authored
changes in PowerShellToolRunner (Azure#32)
1 parent 776f81b commit 45b646f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/PowerShell/Utilities/PowerShellToolRunner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class PowerShellToolRunner {
2828
}
2929
static executePowerShellScriptBlock(scriptBlock, options = {}) {
3030
return __awaiter(this, void 0, void 0, function* () {
31-
yield exec.exec(`${PowerShellToolRunner.psPath} -Command`, [scriptBlock], options);
31+
yield exec.exec(`"${PowerShellToolRunner.psPath}" -Command`, [scriptBlock], options);
3232
});
3333
}
3434
}

lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@ function executeAzCliCommand(command, silent) {
8787
}
8888
});
8989
}
90-
main();
90+
main();

src/PowerShell/Utilities/PowerShellToolRunner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ export default class PowerShellToolRunner {
1111
}
1212

1313
static async executePowerShellScriptBlock(scriptBlock: string, options: any = {}) {
14-
await exec.exec(`${PowerShellToolRunner.psPath} -Command`, [scriptBlock], options)
14+
await exec.exec(`"${PowerShellToolRunner.psPath}" -Command`, [scriptBlock], options)
1515
}
1616
}

0 commit comments

Comments
 (0)