From 041390f74a20c0c38308ffd648c28d693d1953b8 Mon Sep 17 00:00:00 2001 From: Sergei Eremenko Date: Fri, 1 Oct 2021 15:03:59 +0300 Subject: [PATCH] flathub_list_updater.sh: fix jq: Argument list too long --- tools/flathub_list_updater.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/flathub_list_updater.sh b/tools/flathub_list_updater.sh index ec34c578776..c3dc2f8f79f 100755 --- a/tools/flathub_list_updater.sh +++ b/tools/flathub_list_updater.sh @@ -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 \