mirror of https://github.com/aminya/setup-cpp
fix: fix choco versions
This commit is contained in:
parent
c44a193e6a
commit
ae4c6ebf2f
|
@ -14,9 +14,9 @@ export async function setupChocoPack(name: string, version?: string, args: strin
|
||||||
|
|
||||||
let exit
|
let exit
|
||||||
if (version !== undefined && version !== "") {
|
if (version !== undefined && version !== "") {
|
||||||
exit = await exec("choco", ["install", "-y", name, ...args])
|
|
||||||
} else {
|
|
||||||
exit = await exec("choco", ["install", "-y", name, `--version=${version}`, ...args])
|
exit = await exec("choco", ["install", "-y", name, `--version=${version}`, ...args])
|
||||||
|
} else {
|
||||||
|
exit = await exec("choco", ["install", "-y", name, ...args])
|
||||||
}
|
}
|
||||||
|
|
||||||
if (exit !== 0) {
|
if (exit !== 0) {
|
||||||
|
|
Loading…
Reference in New Issue