#!/bin/bash set -e for i in $(seq 1 5); do if curl -s http://localhost:8000/metrics | grep -q '^irc_connected 1'; then exit 0 fi sleep 1 done exit 1