summaryrefslogtreecommitdiff
path: root/al32-mktorrent.sh
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-07-19 15:08:56 +0200
committerErich Eckner <git@eckner.net>2019-07-19 15:08:56 +0200
commit64c8cdfc01e8106f0abce398ed4bc8a809b5a268 (patch)
tree23eca132dc9fa0ee9c91005a95c43e04cad888dc /al32-mktorrent.sh
parent749c054bea7e8503dd9970936812d3642239069b (diff)
downloadreleng-64c8cdfc01e8106f0abce398ed4bc8a809b5a268.tar.xz
al32-mktorrent.sh: properly initialize available_mirrors array
Diffstat (limited to 'al32-mktorrent.sh')
-rwxr-xr-xal32-mktorrent.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/al32-mktorrent.sh b/al32-mktorrent.sh
index aa88dbd..e149b6f 100755
--- a/al32-mktorrent.sh
+++ b/al32-mktorrent.sh
@@ -46,6 +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" && (