[powershell] Use \ instead of / for paths. Resolves #2358. Resolves #2361

This commit is contained in:
Alexander Karatarakis 2017-12-12 17:52:57 -08:00
parent 85848475fe
commit 1656cf7fa7

View File

@ -150,9 +150,9 @@ function vcpkgExtractFile( [Parameter(Mandatory=$true)][string]$file,
[Parameter(Mandatory=$true)][string]$outFilename)
{
vcpkgCreateDirectoryIfNotExists $destinationDir
$output = "$destinationDir/$outFilename"
$output = "$destinationDir\$outFilename"
vcpkgRemoveItem $output
$destinationPartial = "$destinationDir/partially-extracted"
$destinationPartial = "$destinationDir\partially-extracted"
vcpkgRemoveItem $destinationPartial
vcpkgCreateDirectoryIfNotExists $destinationPartial