We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe2c308 commit 686204eCopy full SHA for 686204e
liveliness.sh
@@ -7,7 +7,7 @@ read -r -a repos <<< "$LIVELINESS_REPOS"
7
for i in "${repos[@]}"
8
do
9
echo "repo $i liveliness check..."
10
- response=$(curl --head -L -w '%{http_code}' -o /dev/null -s -k -x http://127.0.0.1:3128 "$i" --max-timeout "${CURL_TIMEOUT:-2}")
+ response=$(curl --head -L -w '%{http_code}' -o /dev/null -s -k -x http://127.0.0.1:3128 "$i" -m "${CURL_TIMEOUT:-2}")
11
if [[ "$response" -lt "200" ]] || [[ "$response" -ge "400" ]]; then
12
echo "failed curl for repo $i with response $response" >&2
13
exit 1
0 commit comments