INNER CODE UNIT · Shell

wait

lework/kainstall · kainstall-centos.sh:158

    wait=$((2 ** count))
    count=$((count + 1))
    if [ "$count" -lt "$retries" ]; then
      echo "Retry $count/$retries exited $exit, retrying in $wait seconds..."
      sleep $wait
    else
      echo "Retry $count/$retries exited $exit, no more retries left."
      return $exit
    fi
  done
  return 0
}


function utils::quote() {
  # 转义引号

  # shellcheck disable=SC2046 

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…