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"