fix: enable shell for vcpkg bootstrap

This commit is contained in:
Amin Yahyaabadi 2021-11-21 11:14:44 -06:00
parent dabdff585f
commit 0c29f0b7a3
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ export function setupVcpkg(_version: string, _setupCppDir: string, _arch: string
if (!hasVCPKG || which.sync("vcpkg", { nothrow: true }) === null) {
execa.sync("git", ["clone", "https://github.com/microsoft/vcpkg"], { cwd: untildify("~/") })
const vcpkgDir = untildify("~/vcpkg")
execa.sync("./vcpkg/bootstrap-vcpkg", { cwd: vcpkgDir })
execa.sync("./vcpkg/bootstrap-vcpkg", { cwd: vcpkgDir, shell: true })
addPath(vcpkgDir)
hasVCPKG = true
return { binDir: vcpkgDir }