INNER CODE UNIT · Shell
downloader
pirovc/genome_updater · genome_updater.sh:1455
function downloader()
{ # parameter: ${1} output file, ${2} url
curl --silent --retry "${retries}" --connect-timeout "${timeout}" --output "${1}" "${2}"
}
else
function downloader()
{ # parameter: ${1} output file, ${2} url
wget --quiet --continue --tries "${retries}" --read-timeout "${timeout}" --output-document "${1}" "${2}"
}
fi
export -f downloader
if [ "${silent}" -eq 1 ]; then
silent_progress=0
elif [ "${silent_progress}" -eq 1 ]; then
silent=1
fi
n_formats=$(echo "${file_formats}" | tr -cd , | wc -c) # number of file formats