Skip to content

Commit

Permalink
chore(ci): fix 'basename: missing operand' error when device has not …
Browse files Browse the repository at this point in the history
…firmware released yet
  • Loading branch information
peter-sanderson committed Oct 4, 2024
1 parent ffd22ac commit b6c74aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/check-firmware-presence-in-releases-json.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ extract_filenames_from_json() {
# a) 'null' from missing .url_bitcoinonly for older firmwares
# b) super-old firmwares

jq -r '.[] | select(.url) | .url, .url_bitcoinonly' "$json_file" | xargs -n 1 basename | sort | uniq \
jq -r '.[] | select(.url) | .url, .url_bitcoinonly' "$json_file" | xargs -n1 --no-run-if-empty basename | sort | uniq \
| grep -vF "null"
}

Expand Down

0 comments on commit b6c74aa

Please sign in to comment.