Skip to content

Commit d07f3e7

Browse files
[Fix] - add option retry to curl command
1 parent b600bfe commit d07f3e7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

services/help.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ aws_get_command() {
4141
fi
4242

4343
if [ ! -s "${cache_file}" ]; then
44-
curl -s "${aws_cli_document_root_url}/${curl_path}" |
44+
curl -s \
45+
--connect-timeout 5 \
46+
--max-time 10 \
47+
--retry 5 \
48+
--retry-delay 0 \
49+
--retry-max-time 40 \
50+
"${aws_cli_document_root_url}/${curl_path}" |
4551
grep '<li class="toctree-l1"><a class="reference internal"' |
4652
awk -F '.html">' '{print $2}' |
4753
awk -F '</a>' '{print $1}' >${cache_file}

0 commit comments

Comments
 (0)