diff options
author | Bradley Sepos <[email protected]> | 2016-07-29 17:43:44 -0400 |
---|---|---|
committer | Bradley Sepos <[email protected]> | 2016-07-29 17:44:43 -0400 |
commit | bf321cee20ef470387433d2fc0cdf09107ef107d (patch) | |
tree | aa4881ae0263f5212e2987ea9c9e69e04ad95c46 /scripts | |
parent | f1e44bfa9c90651d06f491cc5a843741bdcfbb47 (diff) |
scripts: Update to mingw-w64-build 2.2.0.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mingw-w64-build | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/mingw-w64-build b/scripts/mingw-w64-build index fc9930d9a..def8246fa 100755 --- a/scripts/mingw-w64-build +++ b/scripts/mingw-w64-build @@ -41,7 +41,7 @@ function download_url { # download_url $VERBOSE $FILE $URLS fi FAILED=() for I in "${!URLS[@]}"; do - if ! curl --fail --head -L "${URLS[I]}" >/dev/null 2>&1; then + if ! curl --head -Lf --connect-timeout 30 "${URLS[I]}" >/dev/null 2>&1; then FAILED+=("${URLS[I]}") if [[ "$(( ${I} + 1 ))" -lt "${#URLS[@]}" ]]; then continue @@ -56,9 +56,9 @@ function download_url { # download_url $VERBOSE $FILE $URLS return 1 fi if [[ "${VERBOSE:-}" == true ]]; then - echo "curl -Lf \"${URLS[I]}\" -o \"${FILE}\"" + echo "curl -Lf --connect-timeout 30 \"${URLS[I]}\" -o \"${FILE}\"" fi - if ! curl -Lf "${URLS[I]}" -o "${FILE}"; then + if ! curl -Lf --connect-timeout 30 "${URLS[I]}" -o "${FILE}"; then FAILED+=("${URLS[I]}") if [[ "$(( ${I} + 1 ))" -lt "${#URLS[@]}" ]]; then continue @@ -133,7 +133,7 @@ function mingw-w64-build { # mingw-w64-build $TARGET_PARAM $TARGET_DIR # internal vars local NAME VERSION SELF SELF_NAME HELP NAME="mingw-w64-build" - VERSION="2.1.0" + VERSION="2.2.0" SELF="${BASH_SOURCE[0]}" SELF_NAME=$(basename "${SELF}") HELP="\ |