Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-07-19 15:34:29 +0200
committerErich Eckner <git@eckner.net>2019-07-19 15:34:29 +0200
commit596c4db52b18f9b66f98fe067ed0f2c4012445e3 (patch)
tree57a26cf186f3f10bffe905b04a191940ccbf93bb
parent59b5e7c0b04271680f829a63f9ba8b3df766a78e (diff)
al32-mktorrent.sh: do not check for current iso on mirrors - we are _just_ uploading it
-rwxr-xr-xal32-mktorrent.sh14
1 files changed, 1 insertions, 13 deletions
diff --git a/al32-mktorrent.sh b/al32-mktorrent.sh
index e149b6f..593b96f 100755
--- a/al32-mktorrent.sh
+++ b/al32-mktorrent.sh
@@ -46,19 +46,7 @@ function create_torrent_for_arch () {
iso_string="archlinux-$iso_date-$arch.iso"
- available_mirrors=()
- for i in $mirrorlist ; do
- echo -n -e "$fg_reset${fg_bold}Checking $fg_reset$fg_blue$i$fg_reset "
- curl --connect-timeout 10 -g "$i" 2>/dev/null | grep -qF "$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")
- done
-
- echo "${#available_mirrors[@]} mirrors available"
- if [ ${#available_mirrors[@]} -eq 0 ]; then
- available_mirrors=($mirrorlist)
- fi
+ available_mirrors=($mirrorlist)
if [ ! -f "$iso_string" ] ; then
echo -e "$fg_reset${fg_bold}Downloading iso...$fg_reset"