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:
authorSimon Doppler <dopsi@dopsi.ch>2017-08-07 17:12:05 +0200
committerSimon Doppler <dopsi@dopsi.ch>2017-08-07 17:12:05 +0200
commited9232d04bb4b8fd175f6c3002cf4fd265c17af2 (patch)
treef734fbd00447b67e726876484f5d5849ceff9239 /al32-mktorrent.sh
parentb0cef789aa402ba5aa6ccab66a6e6b8b23dcb907 (diff)
Do not duplicate mirrors on the second run
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 3c1090a..b5aaff7 100644
--- a/al32-mktorrent.sh
+++ b/al32-mktorrent.sh
@@ -29,6 +29,7 @@ fg_bold="\033[1m"
MIRRORLIST_FILE="https://raw.githubusercontent.com/archlinux32/packages/master/core/pacman-mirrorlist/mirrorlist"
function create_torrent_for_arch () {
+ declare -a available_mirrors
mirrorlist="$(curl "$MIRRORLIST_FILE" 2>/dev/null | grep Server | cut -d '=' -f 2 | sed -e 's/\s//g;s_$arch/$repo_archisos/_')"
if [ "$#" -eq 0 ] ; then
@@ -92,7 +93,6 @@ function create_torrent_for_arch () {
### Actual program
declare -a architectures=("i686" "dual")
-declare -a available_mirrors
iso_date=''
while getopts "d:h" o; do