0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-16 21:56:37 -05:00

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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,7 +13,7 @@ function wait_str() {
local search_term="$2" local search_term="$2"
local wait_time="${3:-2m}" 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'" echo "timeout of $wait_time reached. unable to find '$search_term' in '$filepath'"