Reorganize the way notes are shown after updates so that they hopefully appear oldest to newest.
This commit is contained in:
parent
7f0c27e472
commit
dbf9174f96
@ -61,10 +61,10 @@ check_update() {
|
|||||||
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
|
||||||
# Store the current commit before pulling
|
# Store the current commit before pulling
|
||||||
local before_pull=$(git rev-parse HEAD)
|
local beforePull=$(git rev-parse HEAD)
|
||||||
git pull
|
git pull
|
||||||
# Show changes between the stored commit and current HEAD
|
# Show changes between the stored commit and current HEAD
|
||||||
git log "$before_pull..HEAD" --pretty=format:'%an: %s'
|
git log "$beforePull..HEAD" --pretty=format:'%an: %s' | tac
|
||||||
exit $?
|
exit $?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user