update.sh reports "latest version" when exactly one new commit is available

This commit is contained in:
il2020
2026-09-29 12:23:41 +00:00
parent 0f87c3e50f
commit 24e2fcaf20

View File

@@ -108,7 +108,7 @@ else
git fetch
new_commits=`git log "$branch..origin/$branch" --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short | wc -l`;
new_commits=`git rev-list --count "$branch..origin/$branch"`;
if [ $new_commits = 0 ]; then
echo -e "\e[32mYou already have the latest version of the application, no upgrade needed.\e[0m";
exit;