From 0205e9c3b2d61d2c969fdd4a6e8514c7fec70d4c Mon Sep 17 00:00:00 2001 From: Meng Sen Date: Fri, 18 Oct 2024 11:39:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20RssHub=20=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E5=8C=B9=E9=85=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Meng Sen --- .github/workflows/renovate-app-version.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/renovate-app-version.sh b/.github/workflows/renovate-app-version.sh index 2cce4766..7d3d5a87 100644 --- a/.github/workflows/renovate-app-version.sh +++ b/.github/workflows/renovate-app-version.sh @@ -28,14 +28,13 @@ process_image() { echo "Trimmed version: $trimmed_version" # Remove any suffixes (like -ffmpeg) for versioning purposes - cleaned_version=$(echo $trimmed_version | grep -oE '^[0-9]+(\.[0-9]+){0,4}') + cleaned_version=$(echo "$trimmed_version" | grep -oE '[0-9]+(\.[0-9]+){0,4}') echo "Cleaned version: $cleaned_version" # Handle special versions with dates and other formats - if [[ -z "$cleaned_version" && "$trimmed_version" =~ ^RELEASE\.[0-9]{4}-[0-9]{2}-[0-9]{2} ]]; then - # Handle minio version format RELEASE.YYYY-MM-DDTHH-MM-SSZ - cleaned_version=$(echo $trimmed_version | grep -oE '[0-9]{4}-[0-9]{2}-[0-9]{2}') + if [[ -z "$cleaned_version" ]]; then + cleaned_version=$(echo "$trimmed_version" | grep -oE '[0-9]{4}-[0-9]{2}-[0-9]{2}') fi echo "Final version: $cleaned_version"