From 6a0ae1fd04014fd04d199e4da7c103bf0e702408 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 27 May 2019 17:19:14 +0200 Subject: Add download and download_retry --- modules/download.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 modules/download.inc diff --git a/modules/download.inc b/modules/download.inc new file mode 100644 index 0000000..bbe4aae --- /dev/null +++ b/modules/download.inc @@ -0,0 +1,10 @@ +#!/bin/ash + +download() { + curl --location --max-redirs 5 --max-time 7 --connect-timeout 2 "$@" +} + +ownload_retry() { + download --retry 3 --retry-max-time 12 "$@" +} + -- cgit v1.2.3-55-g7522