Skip to content

Commit

Permalink
Merge pull request #688 from BlitherBoom812/patch-2
Browse files Browse the repository at this point in the history
Update run.sh: fix /finish payload
  • Loading branch information
xiangmy21 committed May 7, 2024
2 parents a65d0e2 + b17a3be commit 21708f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dependency/shell/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ if [ "$TERMINAL" = "SERVER" ]; then
read_array get_current_team_label $TEAM_LABELS
if [[ "${current_team_label}" == "Student" ]]; then
echo "Parse Success: 1st team is Student"
finish_payload='{"result": {"status": "Finished", "scores": ['${score0}', '${score1}']}}'
finish_payload='{"status": "Finished", "scores": ['${score0}', '${score1}']}'
elif [[ "${current_team_label}" == "Tricker" ]]; then
echo "Parse Success: 1st team is Tricker"
finish_payload='{"result": {"status": "Finished", "scores": ['${score1}', '${score0}']}}'
finish_payload='{"status": "Finished", "scores": ['${score1}', '${score0}']}'
else
echo "Parse Failure: 1st team is Unknown"
finish_payload='{"result": {"status": "Crashed", "scores": [0, 0]}}'
Expand Down

0 comments on commit 21708f4

Please sign in to comment.