There was an error while loading. Please reload this page.
2 parents 98a0b64 + b1a84ec commit 90e758bCopy full SHA for 90e758b
1 file changed
dependency/shell/run.sh
@@ -105,7 +105,15 @@ if [ "$TERMINAL" = "SERVER" ]; then
105
kill -9 $server_pid 2>/dev/null || true
106
107
if [ -n "${FINISH_URL:-}" ] && [ -n "${TOKEN:-}" ]; then
108
- finish_payload='{"status":"Crashed","scores":[0,0]}'
+ zero_scores="["
109
+ for ((i = 0; i < TEAM_COUNT; i++)); do
110
+ if [ "$i" -gt 0 ]; then
111
+ zero_scores+=","
112
+ fi
113
+ zero_scores+="0"
114
+ done
115
+ zero_scores+="]"
116
+ finish_payload="{\"status\":\"Crashed\",\"scores\":$zero_scores}"
117
curl "$FINISH_URL" -X POST \
118
-H "Content-Type: application/json" \
119
-H "Authorization: Bearer $TOKEN" \
0 commit comments