diff options
Diffstat (limited to 'src/lib/globals')
-rw-r--r-- | src/lib/globals | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/globals b/src/lib/globals index 94c2ac7..1d7feea 100644 --- a/src/lib/globals +++ b/src/lib/globals @@ -78,7 +78,7 @@ timeout_wait() { local timeout=$1 (( timeout *= 5 )) shift - while ! eval "$*"; do + until eval "$*"; do (( timeout-- > 0 )) || return 1 sleep 0.2 done |