flathub_list_updater.sh: fix jq: Argument list too long

This commit is contained in:
Sergei Eremenko 2021-10-01 15:03:59 +03:00
parent 9e07ed1f88
commit 041390f74a
No known key found for this signature in database
GPG key ID: AB6D54C1C16D2507

View file

@ -26,8 +26,8 @@ env MARKDOWN=1 bash "$SCRIPT_DIR/missing_flathub_apps.sh" > "$missing_apps_list"
if ! diff -w --brief "$unchecked_apps_list" "$missing_apps_list" >/dev/null; then
echo "Uptading issue #${API_ENDPOINT##*/} ..." >&2
jq --null-input --compact-output \
--arg body "$(cat "$missing_apps_list" "$completed_apps_list")" '{$body}' |
jq --compact-output --raw-input --slurp '. as $body | {$body}' \
"$missing_apps_list" "$completed_apps_list" |
curl \
--silent \
--output /dev/null \