From a0ae6ba2fe8a36cfa967b283e3c42e6433333e6f Mon Sep 17 00:00:00 2001 From: Robomikel Date: Wed, 3 May 2023 16:30:18 -0600 Subject: [PATCH] updated - github download exclude osx --- functions/core_functions.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/core_functions.ps1 b/functions/core_functions.ps1 index 2048f30..fa26655 100644 --- a/functions/core_functions.ps1 +++ b/functions/core_functions.ps1 @@ -1417,7 +1417,7 @@ Function Get-GithubRestAPI { return } if ($githubrepoJSON.assets.browser_download_url -like "*zip*" ) { - $global:githubrepoziplink = ($githubrepoJSON.assets.browser_download_url | select-string -SimpleMatch "zip" | Select-String -NotMatch "Linux" | select -Index 0).Line + $global:githubrepoziplink = ($githubrepoJSON.assets.browser_download_url | select-string -SimpleMatch "zip" | Select-String -NotMatch "Linux", "OSX" | select -Index 0).Line } # if ( $githubrepoJSON | select zipball_url) { # $global:githubrepoziplink = ($githubrepoJSON | select zipball_url | select -Index 0).zipball_url @@ -1427,7 +1427,7 @@ Function Get-GithubRestAPI { return } if ($githubrepoJSON.assets.name) { - $global:githubrepozipname = ($githubrepoJSON.assets.name | select-string -SimpleMatch "zip" | Select-String -NotMatch "Linux" | select -Index 0).Line + $global:githubrepozipname = ($githubrepoJSON.assets.name | select-string -SimpleMatch "zip" | Select-String -NotMatch "Linux", "OSX" | select -Index 0).Line } Else { Write-log "Failed: Get-GithubRestAPI: No zip download file found"