Skip to content

Commit

Permalink
adjust filter by arch
Browse files Browse the repository at this point in the history
  • Loading branch information
Alif Rachmawadi committed Mar 22, 2023
1 parent 88cab40 commit 1508160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ filter_by_channel() {
}

filter_by_arch() {
jq --arg dart_sdk_arch "$1" '[.[] | select(.dart_sdk_arch? | (., "x64") | index($dart_sdk_arch))]'
jq --arg arch "$1" '[.[] | select(.dart_sdk_arch == $arch or ($arch == "x64" and (has("dart_sdk_arch") | not)))]'
}

filter_by_version() {
Expand Down

0 comments on commit 1508160

Please sign in to comment.