From 4f5a7f7567078891528d4b6e378fc560c7deba28 Mon Sep 17 00:00:00 2001 From: Justin Dearing Date: Mon, 5 Aug 2013 20:16:49 -0400 Subject: [PATCH] Deal with file: uris properly --- src/helpers/functions/Get-ChocolateyWebFile.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/helpers/functions/Get-ChocolateyWebFile.ps1 b/src/helpers/functions/Get-ChocolateyWebFile.ps1 index db38d32..2b60d24 100644 --- a/src/helpers/functions/Get-ChocolateyWebFile.ps1 +++ b/src/helpers/functions/Get-ChocolateyWebFile.ps1 @@ -61,6 +61,7 @@ param( } elseif ($url.StartsWith('ftp')) { Get-FtpFile $url $fileFullPath } else { + if ($url.StartsWith('file:')) { $url = ([uri] $url).LocalPath } Write-Debug "We are attempting to copy the local item `'$url`' to `'$fileFullPath`'" Copy-Item $url -Destination $fileFullPath -Force }