Use powershell -c

This commit is contained in:
Kirill Chernyshov 2021-03-24 13:29:15 +01:00
parent 3ef99499b0
commit 5beea5a7ac
No known key found for this signature in database
GPG Key ID: 425B3AB78FBCFBDB
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -3762,7 +3762,7 @@ exports.setup = setup;
function setupWindows(version) {
return __awaiter(this, void 0, void 0, function* () {
const url = `download.clojure.org/install/win-install-${version}.ps1`;
exec.exec('iwr', ['-useb', url, '|', 'iex']);
exec.exec(`powershell -c "iwr -useb ${url} | iex"`);
});
}
exports.setupWindows = setupWindows;

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -47,7 +47,7 @@ export async function setup(version: string): Promise<void> {
export async function setupWindows(version: string): Promise<void> {
const url = `download.clojure.org/install/win-install-${version}.ps1`
exec.exec('iwr', ['-useb', url, '|', 'iex'])
exec.exec(`powershell -c "iwr -useb ${url} | iex"`)
}
async function installClojureToolsDeps(