Skip to content

Commit d98304c

Browse files
committed
Fixed version testing in release archives
1 parent 2e84151 commit d98304c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

build-scripts/test-versioning.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,14 @@ else
178178
not_ok "project.pbxproj DYLIB_CURRENT_VERSION is inconsistent, expected $ref, got $dylib_cur"
179179
fi
180180

181-
sdl_req=$(sed -ne 's/\$sdl2_version = "\([0-9.]*\)"$/\1/p' .github/fetch_sdl_vc.ps1)
181+
if [ -f .github/fetch_sdl_vc.ps1 ]; then
182+
sdl_req=$(sed -ne 's/\$sdl2_version = "\([0-9.]*\)"$/\1/p' .github/fetch_sdl_vc.ps1)
182183

183-
if [ "$ref_sdl_req" = "$sdl_req" ]; then
184-
ok ".github/fetch_sdl_vc.ps1 $sdl_req"
185-
else
186-
not_ok ".github/fetch_sdl_vc.ps1 sdl2_version=$sdl_req disagrees with configure.ac SDL_VERSION=$ref_sdl_req"
184+
if [ "$ref_sdl_req" = "$sdl_req" ]; then
185+
ok ".github/fetch_sdl_vc.ps1 $sdl_req"
186+
else
187+
not_ok ".github/fetch_sdl_vc.ps1 sdl2_version=$sdl_req disagrees with configure.ac SDL_VERSION=$ref_sdl_req"
188+
fi
187189
fi
188190

189191
echo "1..$tests"

0 commit comments

Comments
 (0)