fix: fix choco path when already installed

This commit is contained in:
Amin Yahyaabadi 2021-09-17 05:15:52 -05:00
parent 6333bf6bfa
commit 998539ef66
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ export async function setupChocolatey(
const maybeBinDir = which.sync("choco", { nothrow: true }) const maybeBinDir = which.sync("choco", { nothrow: true })
if (maybeBinDir !== null) { if (maybeBinDir !== null) {
binDir = maybeBinDir binDir = dirname(maybeBinDir)
return { binDir } return { binDir }
} }