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:
parent
334b121644
commit
28ffa38170
1 changed files with 1 additions and 1 deletions
|
@ -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'"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue