Adjusted curl timeout.
This commit is contained in:
parent
a5bb8bc021
commit
1ba82cb96e
@ -52,7 +52,7 @@ check_news() {
|
||||
# url for news file
|
||||
local newsFile="https://stormgames.wolfe.casa/media/agm.ogg"
|
||||
local newsPath="${configFile%/*.conf}/.news"
|
||||
local newsTag="$(curl --connect-timeout 3 -sI "$newsFile" | grep 'etag: "' | cut -d '"' -f2)"
|
||||
local newsTag="$(curl --connect-timeout 15 -sI "$newsFile" | grep 'etag: "' | cut -d '"' -f2)"
|
||||
local newsOldTag="$(cat "$newsPath" 2> /dev/null)"
|
||||
if [[ "$newsTag" != "$newsOldTag" ]]; then
|
||||
dialog --yes-label 'Play' \
|
||||
|
Loading…
Reference in New Issue
Block a user