From ae4c6ebf2fe5def78d7de412ffb85cdbe94489e8 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Thu, 16 Sep 2021 09:31:25 -0500 Subject: [PATCH] fix: fix choco versions --- src/utils/setup/setupChocoPack.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/setup/setupChocoPack.ts b/src/utils/setup/setupChocoPack.ts index c593e7ea..20b2a4eb 100644 --- a/src/utils/setup/setupChocoPack.ts +++ b/src/utils/setup/setupChocoPack.ts @@ -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) {