Fix update messages so they are shown in both CLI and GUI modes.

This commit is contained in:
Storm Dragon
2025-08-05 01:56:35 -04:00
parent 7ab2cdeb60
commit eb9ad3e38d

View File

@@ -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
}