mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
Merge pull request #160 from Icinga:fix/install_release_components_fails_with_new_web_method
Fix: Instaling PowerShell components fails for release branch Installing IcingaPowerShell components fails with new web method for release packages
This commit is contained in:
commit
8769c8dd6d
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ function Get-IcingaPowerShellModuleArchive()
|
||||||
} else {
|
} else {
|
||||||
$WebResponse = Invoke-IcingaWebRequest -Uri 'https://github.com/{0}/{1}/releases/latest' -Objects $GitHubUser, $Repository -UseBasicParsing;
|
$WebResponse = Invoke-IcingaWebRequest -Uri 'https://github.com/{0}/{1}/releases/latest' -Objects $GitHubUser, $Repository -UseBasicParsing;
|
||||||
|
|
||||||
if ($WebResponse.HasErrors -eq $FALSE) {
|
if ($null -eq $WebResponse.HasErrors -Or $WebResponse.HasErrors -eq $FALSE) {
|
||||||
$LatestRelease = $WebResponse.BaseResponse.ResponseUri.AbsoluteUri;
|
$LatestRelease = $WebResponse.BaseResponse.ResponseUri.AbsoluteUri;
|
||||||
$DownloadUrl = $LatestRelease.Replace('/releases/tag/', '/archive/');
|
$DownloadUrl = $LatestRelease.Replace('/releases/tag/', '/archive/');
|
||||||
$Tag = $DownloadUrl.Split('/')[-1];
|
$Tag = $DownloadUrl.Split('/')[-1];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue