From 60dea14aeeede8176692b42bfe94c03987549af5 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Fri, 15 Nov 2024 18:30:56 -0500 Subject: [PATCH] Improved logg display. --- linux-game-manager.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/linux-game-manager.sh b/linux-game-manager.sh index 3dae372..f71613f 100755 --- a/linux-game-manager.sh +++ b/linux-game-manager.sh @@ -55,16 +55,20 @@ check_update() { local upstream='@{u}' local home="$(git rev-parse @)" local remote="$(git rev-parse "$upstream")" -if [[ "$home" == "$remote" ]]; then - return -fi + if [[ "$home" == "$remote" ]]; then + return + fi dialog --backtitle "Linux Game manager" \ --yesno "Updates are available. Would you like to update now?" -1 -1 --stdout || return - { git pull - git log '@{1}..' --pretty=format:'%an: %s'; } + # Store the current commit before pulling + 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 $? } + # Check architecture compatibility check_architecture() { local architecture="$(uname -m)"