Skip to content

Commit

Permalink
Refactor (ci): Remove unneeded -i for srcds/cs2 test container (#157
Browse files Browse the repository at this point in the history
)
  • Loading branch information
joeltimothyoh authored Nov 11, 2023
1 parent 62f55a1 commit 0568cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ if [ ! "$NO_TEST" = 'true' ]; then
date
# srcds/cs2
if [ "$APPID" = 730 ]; then
CONTAINER_ID=$( docker run -itd "$GAME_IMAGE" "$GAME_BIN -dedicated -port 27015 +map de_dust2" )
CONTAINER_ID=$( docker run -td "$GAME_IMAGE" "$GAME_BIN -dedicated -port 27015 +map de_dust2" )
i=0; while [ "$i" -lt 30 ]; do
echo "Waiting for server to start"
docker container inspect -f '{{.State.Running}}' "$CONTAINER_ID" | grep '^true$' > /dev/null || break
Expand Down

0 comments on commit 0568cec

Please sign in to comment.