diff --git a/PKGBUILD/steamfork-customizations-jupiter/PKGBUILD b/PKGBUILD/steamfork-customizations-jupiter/PKGBUILD index a5989d3f..fdb1cc03 100644 --- a/PKGBUILD/steamfork-customizations-jupiter/PKGBUILD +++ b/PKGBUILD/steamfork-customizations-jupiter/PKGBUILD @@ -2,7 +2,7 @@ pkgname=steamfork-customizations-jupiter pkgver=2024.07.13 -pkgrel=3 +pkgrel=4 pkgdesc='SteamFork customizations provider.' arch=('any') url='http://www.steamfork.org' diff --git a/PKGBUILD/steamfork-customizations-jupiter/src/usr/bin/steamfork-get-mirror b/PKGBUILD/steamfork-customizations-jupiter/src/usr/bin/steamfork-get-mirror index 4241ecef..effaf3be 100755 --- a/PKGBUILD/steamfork-customizations-jupiter/src/usr/bin/steamfork-get-mirror +++ b/PKGBUILD/steamfork-customizations-jupiter/src/usr/bin/steamfork-get-mirror @@ -3,6 +3,7 @@ # Copyright (C) 2024-present Fewtarius STAGING_MIRRORLIST="/tmp/steamfork-mirrors.txt" +CURL_OPTS="--connect-timeout 2 --max-time 2" ### Each mirror hashes its repository and provides the hash in the web root. Other ### nodes in the pool check each node's hash, and if they match the node is added @@ -11,7 +12,7 @@ STAGING_MIRRORLIST="/tmp/steamfork-mirrors.txt" DEFAULT_MIRRORS=( "www.steamfork.org" "www2.steamfork.org" "www3.steamfork.org" ) for MIRROR in ${DEFAULT_MIRRORS[@]} do - curl -Lo ${STAGING_MIRRORLIST} https://${MIRROR}/mirrorlist.txt 2>/dev/null + curl -Lo ${STAGING_MIRRORLIST} ${CURL_OPTS} https://${MIRROR}/mirrorlist.txt 2>/dev/null if [ "$?" = "0" ] then break @@ -38,7 +39,7 @@ case ${1} in for COUNT in $(seq 0 1 ${#MIRROR_LIST[@]}) do SELECTED_MIRROR=${MIRROR_LIST[ $RANDOM % ${#MIRROR_LIST[@]}]} - curl -Lo /dev/null ${SELECTED_MIRROR}/mirrorlist.txt >/dev/null 2>&1 + curl -Lo /dev/null ${CURL_OPTS} ${SELECTED_MIRROR}/mirrorlist.txt >/dev/null 2>&1 if [ "$?" = "0" ] then echo ${SELECTED_MIRROR}