Improved logg display.

This commit is contained in:
Storm Dragon 2024-11-15 18:30:56 -05:00
parent 0fde9df474
commit 60dea14aee

View File

@ -55,16 +55,20 @@ check_update() {
local upstream='@{u}' local upstream='@{u}'
local home="$(git rev-parse @)" local home="$(git rev-parse @)"
local remote="$(git rev-parse "$upstream")" local remote="$(git rev-parse "$upstream")"
if [[ "$home" == "$remote" ]]; then if [[ "$home" == "$remote" ]]; then
return return
fi fi
dialog --backtitle "Linux Game manager" \ dialog --backtitle "Linux Game manager" \
--yesno "Updates are available. Would you like to update now?" -1 -1 --stdout || return --yesno "Updates are available. Would you like to update now?" -1 -1 --stdout || return
{ git pull # Store the current commit before pulling
git log '@{1}..' --pretty=format:'%an: %s'; } local before_pull=$(git rev-parse HEAD)
git pull
# Show changes between the stored commit and current HEAD
git log "$before_pull..HEAD" --pretty=format:'%an: %s'
exit $? exit $?
} }
# Check architecture compatibility # Check architecture compatibility
check_architecture() { check_architecture() {
local architecture="$(uname -m)" local architecture="$(uname -m)"