Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

Commit

Permalink
Deal with file: uris properly
Browse files Browse the repository at this point in the history
  • Loading branch information
zippy1981 authored and ferventcoder committed Aug 23, 2013
1 parent 092ec04 commit dfad346
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/helpers/functions/Get-ChocolateyWebFile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit dfad346

Please sign in to comment.