diff --git a/src/PowerShellGet/public/providerfunctions/Add-PackageSource.ps1 b/src/PowerShellGet/public/providerfunctions/Add-PackageSource.ps1 index 5d9518f1..5981b158 100644 --- a/src/PowerShellGet/public/providerfunctions/Add-PackageSource.ps1 +++ b/src/PowerShellGet/public/providerfunctions/Add-PackageSource.ps1 @@ -247,7 +247,7 @@ function Add-PackageSource if($Name -eq $Script:PSGalleryModuleSource) { # Add or update the PSGallery repository - $repository = Set-PSGalleryRepository -Trusted:$Trusted + $repository = Set-PSGalleryRepository -Trusted:$Trusted -Proxy $Proxy -ProxyCredential $ProxyCredential if($repository) {