Fix update messages so they are shown in both CLI and GUI modes.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user