diff options
author | Matt Jordan <mjordan@digium.com> | 2017-03-14 15:12:28 -0500 |
---|---|---|
committer | Matt Jordan <mjordan@digium.com> | 2017-03-14 14:14:04 -0600 |
commit | 658d59c683ff127a37b1be4635b38c360b74b46e (patch) | |
tree | 507a35d76898c010bb12dac135afba50495d5d71 /configure.ac | |
parent | 071e6d971cb97df767b2c6c4c1fdcac17bf92038 (diff) |
configure: Don't use the progress bar with curl when downloading to stdout
In some scenarios, such as when there may not be a terminal (such as
inside a Docker container), curl will apparently direct the progress bar
to stdout. This can cause extra data to be appended to a file curl'd
down to stdout, resulting in md5 verification failures.
This patch removes the progress bar, and tells curl to download the file
silently.
ASTERISK-26872 #close
Change-Id: Ie860b020f627d4372b3e7ce9453de5faafeebe6c
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 039648a43..12f4a34dd 100644 --- a/configure.ac +++ b/configure.ac @@ -319,7 +319,7 @@ if test "${WGET}" != ":" ; then DOWNLOAD_TIMEOUT='--timeout=$1' else if test "${CURL}" != ":" ; then DOWNLOAD="${CURL} -O --progress-bar -w \"%{url_effective}\n\"" - DOWNLOAD_TO_STDOUT="${CURL} -L --progress-bar" + DOWNLOAD_TO_STDOUT="${CURL} -Ls" DOWNLOAD_TIMEOUT='--max-time $(or $2,$1)' else AC_PATH_PROG([FETCH], [fetch], [:]) |