From 788112cbfc81e22ef34ed4fd96d27800a1c10e7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Lys=C3=BD?= Date: Fri, 28 Jun 2024 16:39:11 +0200 Subject: [PATCH] Fix condition for checking that the latest version is beta or RC [MAILPOET-6096] --- .circleci/check_woocommerce_beta.sh | 2 +- .circleci/check_wordpress_beta.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/check_woocommerce_beta.sh b/.circleci/check_woocommerce_beta.sh index 02f4c01898..48ba6a50f7 100755 --- a/.circleci/check_woocommerce_beta.sh +++ b/.circleci/check_woocommerce_beta.sh @@ -10,7 +10,7 @@ for version in $VERSIONS; do done # Check if the latest version is a beta/RC version -if [[ $LATEST_VERSION != *'beta'* || $LATEST_VERSION != *'rc'* ]]; then +if [[ $LATEST_VERSION != *'beta'* && $LATEST_VERSION != *'rc'* ]]; then echo "No WooCommerce beta/RC version found." echo "LATEST_BETA=" else diff --git a/.circleci/check_wordpress_beta.sh b/.circleci/check_wordpress_beta.sh index f1831dcbc1..e19d5aca71 100755 --- a/.circleci/check_wordpress_beta.sh +++ b/.circleci/check_wordpress_beta.sh @@ -7,7 +7,7 @@ RSS_FEED=$(curl -s https://wordpress.org/news/category/releases/feed/) LAST_VERSION=$(echo "$RSS_FEED" | grep -o 'WordPress [^<]*' | sed -E 's/<\/?title>//g' | head -n 1 | tr [:upper:] [:lower:]) # Check if a beta or RC version is found -if [[ $LAST_VERSION != *'beta'* || $LAST_VERSION != *'rc'* ]]; then +if [[ $LAST_VERSION != *'beta'* && $LAST_VERSION != *'rc'* ]]; then echo "No WordPress beta/RC version found." echo "LATEST_BETA=" else