ignore beta for check releases
This commit is contained in:
parent
b26512ec39
commit
47e6bab948
@ -26,8 +26,8 @@ fi
|
||||
if [ "$LAST_VERSION" = "$INSTALLED_VERSION" ]; then
|
||||
echo "OK : Installed version is $INSTALLED_VERSION, last version is $LAST_VERSION"
|
||||
exit 0
|
||||
elif [[ $LAST_VERSION =~ rc[0-9]+$ ]]; then
|
||||
echo "OK : Installed version is $INSTALLED_VERSION, last version is Release Candidate : $LAST_VERSION"
|
||||
elif [[ $LAST_VERSION =~ rc[0-9]+$ ]] || [[ $LAST_VERSION =~ beta[0-9]+$ ]]; then
|
||||
echo "OK : Installed version is $INSTALLED_VERSION, last version is Release Candidate or Beta : $LAST_VERSION"
|
||||
else
|
||||
echo "WARNING : new version available, installed is $INSTALLED_VERSION, last is $LAST_VERSION."
|
||||
exit 2
|
||||
|
Loading…
Reference in New Issue
Block a user