Skip to content

Commit

Permalink
Fix (ci): Do not terminate prematurely without showing `GAME_IMAGE_VE…
Browse files Browse the repository at this point in the history
…RSION_LINES` when verifying image fails
  • Loading branch information
leojonathanoh committed Nov 16, 2023
1 parent 820b036 commit ac489e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,9 @@ if [ ! "$NO_TEST" = 'true' ]; then
echo 'Verifying game image game version'
GAME_IMAGE_VERSION_LINES=$(
if [ "$APPID" = 730 ]; then
cat "$TEST_DIR/test" | grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+'
cat "$TEST_DIR/test" | grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' || true
else
cat "$TEST_DIR/test" | grep -iE '\bexe\b|version'
cat "$TEST_DIR/test" | grep -iE '\bexe\b|version' || true
fi
)
echo 'GAME_IMAGE_VERSION_LINES:'
Expand Down

0 comments on commit ac489e0

Please sign in to comment.