Hopefully make update messages shown after updates less spammy.

This commit is contained in:
Storm Dragon
2025-08-06 00:42:34 -04:00
parent 27f9e973a3
commit 775d48c068

View File

@@ -37,16 +37,25 @@ if [[ "$home" == "$remote" ]]; then
fi fi
agm_yesno "Audiogame Manager" "Audiogame Manager" "Updates are available. Would you like to update now?" || return agm_yesno "Audiogame Manager" "Audiogame Manager" "Updates are available. Would you like to update now?" || return
# Capture update output for display # Perform git pull quietly, then show only the important changes
local updateOutput local updateResult
updateOutput=$({ git pull 2>&1 git pull --quiet >/dev/null 2>&1
echo updateResult=$?
echo "Recent changes:"
git log '@{1}..' --pretty=format:'%an: %s' | tac; } 2>&1)
local updateResult=$?
# Show the update results # Get the important information: commit messages and summary
agm_msgbox "Update Complete" "Audiogame Manager" "$updateOutput" 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 exit $updateResult
} }