From f46e140e3f4539e54748cd467cff12941adcfd64 Mon Sep 17 00:00:00 2001 From: Serhii Yeremenko Date: Sat, 2 Dec 2023 19:35:45 +0200 Subject: [PATCH] Update Flathub apps list only when new apps detected #2007 --- tools/flathub_list_updater.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/flathub_list_updater.sh b/tools/flathub_list_updater.sh index 269f3eab5c..14b11527c3 100755 --- a/tools/flathub_list_updater.sh +++ b/tools/flathub_list_updater.sh @@ -79,12 +79,10 @@ env MARKDOWN=1 bash "$SCRIPT_DIR/missing_flathub_apps.sh" > "$missing_apps_list" comm -13 <(sort "$unchecked_apps_list") <(sort "$missing_apps_list") | sed 's/\[ \][ ]//' > "$new_apps_list" -if ! diff -u -w "$unchecked_apps_list" "$missing_apps_list" >&2; then +if [ -s "$new_apps_list" ]; then echo "Uptading issue #${API_ENDPOINT##*/} ..." >&2 _api_post "$API_ENDPOINT" "$missing_apps_list" "$completed_apps_list" -fi -if [ -s "$new_apps_list" ]; then echo "Add a comment with new apps list ..." >&2 _api_post "$API_ENDPOINT/comments" "$new_apps_list" fi