From 775d48c0681e5bb8939fccb431118ff4738fee09 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Wed, 6 Aug 2025 00:42:34 -0400 Subject: [PATCH] Hopefully make update messages shown after updates less spammy. --- .includes/update.sh | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/.includes/update.sh b/.includes/update.sh index 5f9dd37..5b2ea05 100644 --- a/.includes/update.sh +++ b/.includes/update.sh @@ -37,16 +37,25 @@ if [[ "$home" == "$remote" ]]; then fi agm_yesno "Audiogame Manager" "Audiogame Manager" "Updates are available. Would you like to update now?" || return - # Capture update output for display - local updateOutput - updateOutput=$({ git pull 2>&1 - echo - echo "Recent changes:" - git log '@{1}..' --pretty=format:'%an: %s' | tac; } 2>&1) - local updateResult=$? + # Perform git pull quietly, then show only the important changes + local updateResult + git pull --quiet >/dev/null 2>&1 + updateResult=$? - # Show the update results - agm_msgbox "Update Complete" "Audiogame Manager" "$updateOutput" + # Get the important information: commit messages and summary + local changesSummary + changesSummary=$({ + echo "=== UPDATE COMPLETED ===" + echo + echo "Recent changes:" + git log '@{1}..' --pretty=format:'• %an: %s' | tac + echo + echo "Update summary:" + git diff --stat '@{1}..' | tail -1 + } 2>/dev/null) + + # Show only the meaningful update information + agm_msgbox "Update Complete" "Audiogame Manager" "$changesSummary" exit $updateResult }