diff --git a/README.md b/README.md index bd8e3f3..9bbd4ea 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ The Draft pack repository plugin. Fetch the latest version of `draft pack-repo` using ``` -$ draft plugin install https://github.com/draftcreate/draft-pack-repo +$ draft plugin install https://github.com/BeardyC/draft-pack-repo ``` ## Why a Plugin? diff --git a/scripts/get.ps1 b/scripts/get.ps1 index a5dd3d8..337ffb6 100644 --- a/scripts/get.ps1 +++ b/scripts/get.ps1 @@ -9,8 +9,11 @@ $tempDir = Join-Path $env:TEMP $name if (![System.IO.Directory]::Exists($tempDir)) {[void][System.IO.Directory]::CreateDirectory($tempDir)} $file = Join-Path $env:TEMP "$name-v$version-windows-amd64.zip" +$proxy = New-Object System.Net.WebClient +$Proxy.Proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials + Write-Output "Downloading $url" -(new-object System.Net.WebClient).DownloadFile($url, $file) +$proxy.DownloadFile($url, $file) $installPath = "$env:DRAFT_HOME\plugins\draft-pack-repo\bin" if (![System.IO.Directory]::Exists($installPath)) {[void][System.IO.Directory]::CreateDirectory($installPath)}