CharlieC3
8/11/2017 - 4:52 PM

Wait until certain text appears in log file

Wait until certain text appears in log file

#!/bin/bash

until [[ $(grep -c "Build agent started" ${TC_LOGS_PATH}/teamcity-agent.log 2>/dev/null) == 2 ]]; do
  sleep 1
done