aboutsummaryrefslogtreecommitdiff
path: root/scripts/fetchTool.ps1
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-04-30 19:08:34 -0700
committerRobert Schumacher <roschuma@microsoft.com>2018-05-01 00:27:23 -0700
commitc4caf29213f54b1786102c1b4dc085b6d7142998 (patch)
treeeae4891f9c599cb68be6f9f428e25bdf5fef8ae6 /scripts/fetchTool.ps1
parente3997dcd10e31cc2243003abedf32eea8ca67f49 (diff)
downloadvcpkg-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.ps12
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)
{