build-package.sh: double the amount of curl download retries
This commit is contained in:
parent
d4f1eb6ec4
commit
425594ca56
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user