fix: Variable expansion in retry loop (#308)

This commit is contained in:
Kroese 2025-09-22 21:32:25 +02:00 committed by GitHub
parent c787b8dd13
commit d4add50eb4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,8 +34,9 @@ delay() {
local delay="$1"
local msg="Retrying failed download in X seconds..."
for i in $(seq $delay -1 1); do
info "${msg/X/$i}"
info "${msg/X/$delay}"
for i in $(seq "$delay" -1 1); do
html "${msg/X/$i}"
sleep 1
done