#!/usr/bin/env bash
for i in $(seq 1 60); do
  if tmux capture-pane -t curopr -p -S -60 | grep -q "ALL DONE"; then
    echo "FINISHED"
    break
  fi
  sleep 2
done
tmux capture-pane -t curopr -p -S -60 | tail -25
