Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/al32-mktorrent.sh
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-07-19 13:47:27 +0200
committerErich Eckner <git@eckner.net>2019-07-19 13:47:27 +0200
commit7ea752bf045c6256d396af7bccebb1a5a899f2a3 (patch)
treec15a8b3f7ad9b09124f99becbaf87ea26bef0e20 /al32-mktorrent.sh
parent6e412efc789efb66b862270d5be0e56979be1016 (diff)
al32-mktorrent.sh: add timeout to curl
Diffstat (limited to 'al32-mktorrent.sh')
-rw-r--r--al32-mktorrent.sh2
1 files changed, 1 insertions, 1 deletions
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")