0
0
mirror of https://github.com/thegeeklab/retry.git synced 2024-06-02 18:29:39 +02:00

chore: fix shellcheck SC2323

This commit is contained in:
Robert Kaussow 2023-01-09 20:44:25 +01:00
parent 0d0ae363f5
commit c60394a932
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

2
retry
View File

@ -9,7 +9,7 @@ __sleep_amount() {
else
#TODO: check for awk
#TODO: check if user would rather use one of the other possible dependencies: python, ruby, bc, dc
sleep_time=$(awk "BEGIN {t = $min_sleep * $(((1 << (_retry_attempts - 1)))); print (t > $max_sleep ? $max_sleep : t)}")
sleep_time=$(awk "BEGIN {t = $min_sleep * $((1 << (_retry_attempts - 1))); print (t > $max_sleep ? $max_sleep : t)}")
fi
}