diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2018-04-30 19:08:34 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-05-01 00:27:23 -0700 |
| commit | c4caf29213f54b1786102c1b4dc085b6d7142998 (patch) | |
| tree | eae4891f9c599cb68be6f9f428e25bdf5fef8ae6 /scripts/fetchTool.ps1 | |
| parent | e3997dcd10e31cc2243003abedf32eea8ca67f49 (diff) | |
| download | vcpkg-c4caf29213f54b1786102c1b4dc085b6d7142998.tar.gz vcpkg-c4caf29213f54b1786102c1b4dc085b6d7142998.zip | |
[vcpkg] Fix temporary download directory when vcpkg is located at the root of a drive
Diffstat (limited to 'scripts/fetchTool.ps1')
| -rw-r--r-- | scripts/fetchTool.ps1 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/fetchTool.ps1 b/scripts/fetchTool.ps1 index dd3f0f9f4..eca405b62 100644 --- a/scripts/fetchTool.ps1 +++ b/scripts/fetchTool.ps1 @@ -4,6 +4,7 @@ param( ) Set-StrictMode -Version Latest + $scriptsDir = split-path -parent $script:MyInvocation.MyCommand.Definition . "$scriptsDir\VcpkgPowershellUtils.ps1" @@ -12,6 +13,7 @@ $vcpkgRootDir = vcpkgFindFileRecursivelyUp $scriptsDir .vcpkg-root $downloadsDir = "$vcpkgRootDir\downloads" vcpkgCreateDirectoryIfNotExists $downloadsDir +$downloadsDir = Resolve-Path $downloadsDir function fetchToolInternal([Parameter(Mandatory=$true)][string]$tool) { |
