Handle Avalonia versions without Numerge submodule

This commit is contained in:
geruipu committed 2026-06-21 10:33:10 +08:00
1 parent a700f4a124
commit d68bffa85c
1 file changed
+1 -1
@@ -21,7 +21,7 @@ if [[ ! -d "$src/.git" ]]; then
git clone --depth 1 --branch "$AVALONIA_VERSION" https://github.com/AvaloniaUI/Avalonia.git "$src"
fi
if [[ ! -d "$src/external/Numerge/.git" ]]; then
if git -C "$src" config -f .gitmodules --get-regexp path | grep -q 'external/Numerge' && [[ ! -d "$src/external/Numerge/.git" ]]; then
git -C "$src" submodule update --init --depth 1 external/Numerge
fi