From 1d13435cf0f27a77dd65e6f153779ff637f5a647 Mon Sep 17 00:00:00 2001 From: Quentin Gibeaux Date: Tue, 1 Dec 2020 11:14:06 +0100 Subject: [PATCH] ignore release candidates --- monitoring/check_tootsuite_mastodon_release.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/monitoring/check_tootsuite_mastodon_release.sh b/monitoring/check_tootsuite_mastodon_release.sh index 7dc99b1..20e937b 100755 --- a/monitoring/check_tootsuite_mastodon_release.sh +++ b/monitoring/check_tootsuite_mastodon_release.sh @@ -26,6 +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" else echo "WARNING : new version available, installed is $INSTALLED_VERSION, last is $LAST_VERSION." exit 2