aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-02-28 03:40:10 -0800
committerRobert Schumacher <roschuma@microsoft.com>2018-02-28 03:40:10 -0800
commit4642191a099ddd578a46ecbb2c08899233e9e754 (patch)
tree05d4d51373e71b58bab49c9f62fad54df6632118 /scripts
parent8dd968cc6e08f371a98eaf014f42ff44efc5ab84 (diff)
downloadvcpkg-4642191a099ddd578a46ecbb2c08899233e9e754.tar.gz
vcpkg-4642191a099ddd578a46ecbb2c08899233e9e754.zip
[vcpkg-scripts] The shell zip extractor requires full paths
Diffstat (limited to 'scripts')
-rw-r--r--scripts/VcpkgPowershellUtils.ps12
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/VcpkgPowershellUtils.ps1 b/scripts/VcpkgPowershellUtils.ps1
index d4296857e..80e6fdc1f 100644
--- a/scripts/VcpkgPowershellUtils.ps1
+++ b/scripts/VcpkgPowershellUtils.ps1
@@ -163,7 +163,7 @@ function vcpkgExtractFile( [Parameter(Mandatory=$true)][string]$file,
vcpkgCreateDirectoryIfNotExists $destinationPartial
$shell = new-object -com shell.application
- $zip = $shell.NameSpace($file)
+ $zip = $shell.NameSpace($(Get-Item $file).fullname)
$itemCount = $zip.Items().Count
if (vcpkgHasCommand -commandName 'Microsoft.PowerShell.Archive\Expand-Archive')