Fix condition for checking that the latest version is beta or RC

[MAILPOET-6096]
This commit is contained in:
Jan Lysý
2024-06-28 16:39:11 +02:00
committed by Jan Lysý
parent 5f3b94381a
commit 788112cbfc
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -7,7 +7,7 @@ RSS_FEED=$(curl -s https://wordpress.org/news/category/releases/feed/)
LAST_VERSION=$(echo "$RSS_FEED" | grep -o '<title>WordPress [^<]*</title>' | 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