From 5272d5ba72b9f98fc0ef9705d5137755077859a7 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Fri, 13 Apr 2018 14:00:33 +1200 Subject: [PATCH] Update comment about curl exit codes We work around curl --version giving exit code 2, but modern versions exit with code 0, so document the known bounds on this change in behaviour. --- bootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap b/bootstrap index 2a8e0465a..781f4538b 100755 --- a/bootstrap +++ b/bootstrap @@ -185,7 +185,7 @@ lazy_build() { if ${WGET-wget} --version > /dev/null 2>&1 ; then FETCH_URL_TOOL="${WGET-wget} -O-" elif ${CURL-curl} --version > /dev/null 2>&1 || [ "$?" = 2 ] ; then - # curl --version exits with code 2. + # curl --version exits with code 2 (~7.18.2) or 0 (7.35.0). # -L is needed to follow HTTP redirects. FETCH_URL_TOOL="${CURL-curl} -L" elif ${LWP_REQUEST-lwp-request} -v > /dev/null 2>&1 || [ "$?" = 9 -o "$?" = 255 ] ; then -- 2.11.4.GIT