From 5e3903f3c454c583c78d21bfceacb3f93ea388a2 Mon Sep 17 00:00:00 2001 From: xf0r3m Date: Fri, 18 Aug 2023 07:20:30 +0200 Subject: [PATCH] =?utf8?q?Poprawienie=20b=C5=82=C4=99d=C3=B3w=20w=20funkcj?= =?utf8?q?i=20check=5Fdistro=5Fcommit.=20Poprawienie=20sposobu=20wy=C5=9Bw?= =?utf8?q?ietlania=20informacji=20o=20zmianach=20w=20projekcie?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- tools/immudex-upgrade | 3 ++- tools/library.sh | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/immudex-upgrade b/tools/immudex-upgrade index ba0aba5..5f008aa 100755 --- a/tools/immudex-upgrade +++ b/tools/immudex-upgrade @@ -40,7 +40,8 @@ if [ "$1" ]; then if check_distro_commit; then echo -e "${GREEN}This${ENDCOLOR} is the latest version of immudex"; else - echo -e "There is a ${RED}new${ENDCOLOR} version of immudex"; + echo -e "There is a ${RED}new${ENDCOLOR} version of immudex:"; + echo "==================================================="; check_distro_commit --print; fi elif [ "$1" ] && [ "$1" = "--upgrade" ]; then diff --git a/tools/library.sh b/tools/library.sh index c43e68b..3c80e18 100755 --- a/tools/library.sh +++ b/tools/library.sh @@ -28,9 +28,9 @@ function check_distro_commit() { fi latestVersion=$(cd /tmp/immudex-testing && git log --pretty=oneline | cut -d " " -f 1); if [ "$1" ] && [ "$1" == "--print" ]; then - $(cd /tmp/immudex-testing && git log $latestVersion); + echo "$(cd /tmp/immudex-testing && git log $latestVersion)"; fi - if [ "$localVersion" = "$latestVersion"]; then + if [ "$localVersion" = "$latestVersion" ]; then return 0; else return 1; -- 2.39.5