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

fix: Variable expansion in retry loop (#838)

parent 3e9fe2ab
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -126,8 +126,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