0
0
mirror of https://github.com/thegeeklab/retry.git synced 2024-11-23 05:50:39 +00:00

chore: fix shellcheck SC2323 (#11)

This commit is contained in:
Robert Kaussow 2023-01-14 23:47:20 +01:00 committed by GitHub
parent 0d0ae363f5
commit b681751638
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}