mirror of
https://github.com/dockur/macos.git
synced 2026-03-11 08:34:24 +00:00
fix: Variable expansion in retry loop (#308)
This commit is contained in:
parent
c787b8dd13
commit
d4add50eb4
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue