mirror of
https://github.com/DeLaGuardo/setup-clojure.git
synced 2025-01-14 02:18:07 +08:00
Use powershell -c
This commit is contained in:
parent
3ef99499b0
commit
5beea5a7ac
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -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
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user