Add timeout to curl

This commit is contained in:
DataHoarder 2022-02-19 03:28:38 +01:00
parent c438ab1f63
commit f30d8a8a9b

View file

@ -9,7 +9,7 @@ FORCE_FETCH="$2"
CATEGORY="${1//[ \/]/_}"
doRequest () {
docker run --rm curl-impersonate /build/out/curl_ff95 --silent --compressed "https://en.touhouwiki.net/${1}"
docker run --rm curl-impersonate /build/out/curl_ff95 --max-time 10 --silent --compressed "https://en.touhouwiki.net/${1}"
sleep 1
}