e2e/lib.sh: print to stderr in retry
This way callers of retry can check against the returned value and not the logged strings. Signed-off-by: leonnicolas <leonloechner@gmx.de>
This commit is contained in:
parent
f251ddda98
commit
86eea326db
@ -16,9 +16,9 @@ retry() {
|
||||
if "$@"; then
|
||||
return 0
|
||||
else
|
||||
printf "%s(attempt %d/%d)\n" "$ERROR" "$c" "$COUNT" | color "$YELLOW"
|
||||
printf "%s(attempt %d/%d)\n" "$ERROR" "$c" "$COUNT" | color "$YELLOW" 1>&2
|
||||
if [ "$c" != "$COUNT" ]; then
|
||||
printf "retrying in %d seconds...\n" "$SLEEP" | color "$YELLOW"
|
||||
printf "retrying in %d seconds...\n" "$SLEEP" | color "$YELLOW" 1>&2
|
||||
sleep "$SLEEP"
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user