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
|
return
|
||||||
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
|
||||||
{ git pull
|
|
||||||
git log '@{1}..' --pretty=format:'%an: %s' | tac; }
|
# Capture update output for display
|
||||||
exit $?
|
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