chore: fix search for 'no digests left, finished' in nightly job (#2784)

Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
This commit is contained in:
Andrei Aaron
2024-11-15 18:51:00 +02:00
committed by GitHub
parent 334b121644
commit 28ffa38170
+1 -1
View File
@@ -13,7 +13,7 @@ function wait_str() {
local search_term="$2"
local wait_time="${3:-2m}"
(timeout $wait_time tail -F -n0 "$filepath" &) | grep -q "$search_term" && return 0
(timeout $wait_time tail -F -n +1 "$filepath" &) | grep -q "$search_term" && return 0
echo "timeout of $wait_time reached. unable to find '$search_term' in '$filepath'"