diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 23a46eb..b4a199f 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -14,7 +14,8 @@ jobs: echo "🔍 Parsing project.godot to identify the target engine version..." # Extracts the first value out of config/features (e.g., "4.7") - VERSION_SHORT=$(grep "config/features" project.godot | sed -E 's/.*"([^"]+)".*/\1/') + # Finds the line, isolates the contents of the first set of quotes, and strips spaces + VERSION_SHORT=$(grep "config/features" project.godot | sed -E 's/^[^\"]*\"([^\"]+)\".*/\1/' | xargs) if [ -z "$VERSION_SHORT" ]; then echo "❌ Error: Could not determine Godot version from project.godot. Defaulting to 4.7"