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 }