SDL_net: Fixed version testing in release archives

From d670899655d77b018a6a8da4982cdbb9d4963ac8 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 1 Jan 2025 12:16:29 -0800
Subject: [PATCH] Fixed version testing in release archives

---
 build-scripts/test-versioning.sh | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/build-scripts/test-versioning.sh b/build-scripts/test-versioning.sh
index 7328fbc..05e3773 100755
--- a/build-scripts/test-versioning.sh
+++ b/build-scripts/test-versioning.sh
@@ -178,19 +178,17 @@ else
     not_ok "project.pbxproj DYLIB_CURRENT_VERSION is inconsistent, expected $ref, got $dylib_cur"
 fi
 
-######
-if false; then
+if [ -f .github/fetch_sdl_vc.ps1 ]; then
+    sdl_req=$(sed -ne 's/\$sdl2_version = "\([0-9.]*\)"$/\1/p' .github/fetch_sdl_vc.ps1)
 
-sdl_req=$(sed -ne 's/\$sdl2_version = "\([0-9.]*\)"$/\1/p' .github/fetch_sdl_vc.ps1)
-
-if [ "$ref_sdl_req" = "$sdl_req" ]; then
-    ok ".github/fetch_sdl_vc.ps1 $sdl_req"
-else
-    not_ok ".github/fetch_sdl_vc.ps1 sdl2_version=$sdl_req disagrees with configure.ac SDL_VERSION=$ref_sdl_req"
+    if [ "$ref_sdl_req" = "$sdl_req" ]; then
+        ok ".github/fetch_sdl_vc.ps1 $sdl_req"
+    else
+        not_ok ".github/fetch_sdl_vc.ps1 sdl2_version=$sdl_req disagrees with configure.ac SDL_VERSION=$ref_sdl_req"
+    fi
 fi
 
-fi # false
-######
+fi
 
 echo "1..$tests"
 exit "$failed"