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