Skip to content

Commit 9733bde

Browse files
committed
Fixes wrong Url for stable Plugin Release
Fixes #36
1 parent 4b87a68 commit 9733bde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/framework/Get-IcingaPowerShellModuleArchive.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function Get-IcingaPowerShellModuleArchive()
1515
if ($branch.ToLower() -eq 'snapshot') {
1616
$DownloadUrl = [string]::Format('https://github.com/Icinga/{0}/archive/master.zip', $Repository);
1717
} else {
18-
$LatestRelease = (Invoke-WebRequest -Uri 'https://github.com/Icinga/icinga-powershell-framework/releases/latest' -UseBasicParsing).BaseResponse.ResponseUri.AbsoluteUri;
18+
$LatestRelease = (Invoke-WebRequest -Uri ([string]::Format('https://github.com/Icinga/{0}/releases/latest', $Repository)) -UseBasicParsing).BaseResponse.ResponseUri.AbsoluteUri;
1919
$DownloadUrl = $LatestRelease.Replace('/releases/tag/', '/archive/');
2020
$Tag = $DownloadUrl.Split('/')[-1];
2121
$DownloadUrl = [string]::Format('{0}/{1}.zip', $DownloadUrl, $Tag);

0 commit comments

Comments
 (0)