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
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;