From 47e6bab9484290d71d47c546fe4c99b4984c4c17 Mon Sep 17 00:00:00 2001 From: Quentin Gibeaux Date: Thu, 17 Aug 2023 14:21:41 +0200 Subject: [PATCH] ignore beta for check releases --- monitoring/check_tootsuite_mastodon_release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monitoring/check_tootsuite_mastodon_release.sh b/monitoring/check_tootsuite_mastodon_release.sh index cf4d752..24ebac0 100755 --- a/monitoring/check_tootsuite_mastodon_release.sh +++ b/monitoring/check_tootsuite_mastodon_release.sh @@ -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