From 425594ca563b72172c5ec2a95b33d16bb933fd08 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Tue, 28 Jul 2020 00:20:33 +0300 Subject: [PATCH] build-package.sh: double the amount of curl download retries --- scripts/build/termux_download.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build/termux_download.sh b/scripts/build/termux_download.sh index e60dd5a68..97d188b55 100755 --- a/scripts/build/termux_download.sh +++ b/scripts/build/termux_download.sh @@ -16,7 +16,7 @@ termux_download() { local TMPFILE TMPFILE=$(mktemp "$TERMUX_PKG_TMPDIR/download.$TERMUX_PKG_NAME.XXXXXXXXX") echo "Downloading ${URL}" - if curl --fail --retry 10 --retry-connrefused --retry-delay 30 --location --output "$TMPFILE" "$URL"; then + if curl --fail --retry 20 --retry-connrefused --retry-delay 30 --location --output "$TMPFILE" "$URL"; then local ACTUAL_CHECKSUM ACTUAL_CHECKSUM=$(sha256sum "$TMPFILE" | cut -f 1 -d ' ') if [ "$CHECKSUM" != "SKIP_CHECKSUM" ]; then