#!/bin/bash
while true; do
    curl -s -f --compressed -o /tmp/dump.json http://concours/matches/$1/dump/
    if [ $? -eq 0 ]; then
        break
    else
        sleep 1
    fi
done
prologin2018-replay /tmp/dump.json 2>/dev/null >/dev/null
