index : releng | |
Archlinux32 release engineering | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | al32-mktorrent.sh | 2 |
diff --git a/al32-mktorrent.sh b/al32-mktorrent.sh index 3049514..3e577c4 100644 --- a/al32-mktorrent.sh +++ b/al32-mktorrent.sh @@ -53,7 +53,7 @@ function create_torrent_for_arch () { for i in $mirrorlist ; do echo -n -e "$fg_reset${fg_bold}Checking $fg_reset$fg_blue$i$fg_reset " - curl -g "$i" 2>/dev/null | grep -q "$iso_string" && ( + curl --connect-timeout 10 -g "$i" 2>/dev/null | grep -q "$iso_string" && ( echo -e "$fg_reset${fg_green}OK$fg_reset" ) || ( echo -e "$fg_reset${fg_red}Failed$fg_reset" ; false ) || continue available_mirrors=(${available_mirrors[@]} "$i") |