ignore release candidates

This commit is contained in:
Quentin Gibeaux 2020-12-01 11:14:06 +01:00 committed by root
parent b8aa1dba90
commit 1d13435cf0

View File

@ -26,6 +26,8 @@ fi
if [ "$LAST_VERSION" = "$INSTALLED_VERSION" ]; then if [ "$LAST_VERSION" = "$INSTALLED_VERSION" ]; then
echo "OK : Installed version is $INSTALLED_VERSION, last version is $LAST_VERSION" echo "OK : Installed version is $INSTALLED_VERSION, last version is $LAST_VERSION"
exit 0 exit 0
elif [[ $LAST_VERSION =~ rc[0-9]+$ ]]; then
echo "OK : Installed version is $INSTALLED_VERSION, last version is Release Candidate : $LAST_VERSION"
else else
echo "WARNING : new version available, installed is $INSTALLED_VERSION, last is $LAST_VERSION." echo "WARNING : new version available, installed is $INSTALLED_VERSION, last is $LAST_VERSION."
exit 2 exit 2