We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b87a68 commit 9733bdeCopy full SHA for 9733bde
lib/core/framework/Get-IcingaPowerShellModuleArchive.psm1
@@ -15,7 +15,7 @@ function Get-IcingaPowerShellModuleArchive()
15
if ($branch.ToLower() -eq 'snapshot') {
16
$DownloadUrl = [string]::Format('https://github.com/Icinga/{0}/archive/master.zip', $Repository);
17
} else {
18
- $LatestRelease = (Invoke-WebRequest -Uri 'https://github.com/Icinga/icinga-powershell-framework/releases/latest' -UseBasicParsing).BaseResponse.ResponseUri.AbsoluteUri;
+ $LatestRelease = (Invoke-WebRequest -Uri ([string]::Format('https://github.com/Icinga/{0}/releases/latest', $Repository)) -UseBasicParsing).BaseResponse.ResponseUri.AbsoluteUri;
19
$DownloadUrl = $LatestRelease.Replace('/releases/tag/', '/archive/');
20
$Tag = $DownloadUrl.Split('/')[-1];
21
$DownloadUrl = [string]::Format('{0}/{1}.zip', $DownloadUrl, $Tag);
0 commit comments