diff --git a/src/vcpkg/vcpkg.ts b/src/vcpkg/vcpkg.ts index 13406677..7c70b3d2 100644 --- a/src/vcpkg/vcpkg.ts +++ b/src/vcpkg/vcpkg.ts @@ -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 }