From eb9ad3e38da8e423a3e9ae1fef87155bbd0ef13e Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Tue, 5 Aug 2025 01:56:35 -0400 Subject: [PATCH] Fix update messages so they are shown in both CLI and GUI modes. --- .includes/update.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.includes/update.sh b/.includes/update.sh index 6af5e2a..5f9dd37 100644 --- a/.includes/update.sh +++ b/.includes/update.sh @@ -36,7 +36,17 @@ if [[ "$home" == "$remote" ]]; then return fi agm_yesno "Audiogame Manager" "Audiogame Manager" "Updates are available. Would you like to update now?" || return - { git pull - git log '@{1}..' --pretty=format:'%an: %s' | tac; } - exit $? + + # 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=$? + + # Show the update results + agm_msgbox "Update Complete" "Audiogame Manager" "$updateOutput" + + exit $updateResult }