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 authored and joeltimothyoh committed Nov 17, 2023
1 parent a964f82 commit 0b6e6f5
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 @@ -296,9 +296,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 0b6e6f5

Please sign in to comment.