fix: fix choco versions

This commit is contained in:
Amin Yahyaabadi 2021-09-16 09:31:25 -05:00
parent c44a193e6a
commit ae4c6ebf2f
1 changed files with 2 additions and 2 deletions

View File

@ -14,9 +14,9 @@ export async function setupChocoPack(name: string, version?: string, args: strin
let exit
if (version !== undefined && version !== "") {
exit = await exec("choco", ["install", "-y", name, ...args])
} else {
exit = await exec("choco", ["install", "-y", name, `--version=${version}`, ...args])
} else {
exit = await exec("choco", ["install", "-y", name, ...args])
}
if (exit !== 0) {