Add timeout to curl
This commit is contained in:
parent
c438ab1f63
commit
f30d8a8a9b
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue