]> gitweb.morketsmerke.org Git - immudex-testing.git/commitdiff
Poprawienie błędów w funkcji check_distro_commit. Poprawienie sposobu wyświetlania...
authorxf0r3m <jakubstasinski@protonmail.com>
Fri, 18 Aug 2023 05:20:30 +0000 (07:20 +0200)
committerxf0r3m <jakubstasinski@protonmail.com>
Fri, 18 Aug 2023 05:20:30 +0000 (07:20 +0200)
tools/immudex-upgrade
tools/library.sh

index ba0aba56c66c5e9e1eb0c33d1f6eba70f2446095..5f008aa450723ed48b9b9135048c009020466fdd 100755 (executable)
@@ -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
index c43e68b05462afeecc42d047946b8059355e39b4..3c80e1851fe8331bc76d4805e58a17c42b694f00 100755 (executable)
@@ -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;