mirror of https://github.com/aminya/setup-cpp
fix: enable shell for vcpkg bootstrap
This commit is contained in:
parent
dabdff585f
commit
0c29f0b7a3
|
@ -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 }
|
||||
|
|
Loading…
Reference in New Issue