mirror of https://github.com/aminya/setup-cpp
fix: fix choco path when already installed
This commit is contained in:
parent
6333bf6bfa
commit
998539ef66
|
@ -25,7 +25,7 @@ export async function setupChocolatey(
|
|||
|
||||
const maybeBinDir = which.sync("choco", { nothrow: true })
|
||||
if (maybeBinDir !== null) {
|
||||
binDir = maybeBinDir
|
||||
binDir = dirname(maybeBinDir)
|
||||
return { binDir }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue