Unverified Commit d4add50e authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Variable expansion in retry loop (#308)

parent c787b8dd
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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