mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-07-13 02:44:53 +02:00
Change 'until' style (#3366)
This commit is contained in:
parent
c2d0b748b2
commit
8512dba8ad
2 changed files with 5 additions and 10 deletions
|
@ -37,8 +37,7 @@ function repeat_until_success_or_timeout {
|
|||
local STARTTIME=${SECONDS}
|
||||
shift 1
|
||||
|
||||
until "${@}"
|
||||
do
|
||||
until "${@}"; do
|
||||
if [[ -n ${FATAL_FAILURE_TEST_COMMAND} ]] && ! eval "${FATAL_FAILURE_TEST_COMMAND}"; then
|
||||
echo "\`${FATAL_FAILURE_TEST_COMMAND}\` failed, early aborting repeat_until_success of \`${*}\`" >&2
|
||||
return 1
|
||||
|
@ -66,8 +65,7 @@ function run_until_success_or_timeout {
|
|||
local STARTTIME=${SECONDS}
|
||||
shift 1
|
||||
|
||||
until run "${@}" && [[ $status -eq 0 ]]
|
||||
do
|
||||
until run "${@}" && [[ $status -eq 0 ]]; do
|
||||
sleep 1
|
||||
|
||||
if (( SECONDS - STARTTIME > TIMEOUT )); then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue