Skip to content

Commit

Permalink
updated - github download exclude osx
Browse files Browse the repository at this point in the history
  • Loading branch information
Robomikel committed May 3, 2023
1 parent 82b11cb commit a0ae6ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/core_functions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit a0ae6ba

Please sign in to comment.