[godot] Another attempt at fixing web template builds for Godot >= 4.3, see #2627

This commit is contained in:
Mario Zechner 2024-09-09 14:22:10 +02:00
parent 77ab726b3f
commit eb247bbfa2

View File

@ -394,7 +394,7 @@ jobs:
echo "$GODOT_VERSION" > version.txt echo "$GODOT_VERSION" > version.txt
# Extract the major and minor version from GODOT_VERSION # Extract the major and minor version from GODOT_VERSION
GODOT_MAJOR_MINOR=$(echo "$GODOT_VERSION" | awk -F. '{print $1 "." $2}') GODOT_MAJOR_MINOR=$(echo "$GODOT_VERSION" | sed -E 's/^([0-9]+\.[0-9]+).*/\1/')
# Check if the version is >= 4.3 # Check if the version is >= 4.3
if [[ $(echo "$GODOT_MAJOR_MINOR >= 4.3" | bc) -eq 1 ]]; then if [[ $(echo "$GODOT_MAJOR_MINOR >= 4.3" | bc) -eq 1 ]]; then