index : releng | |
Archlinux32 release engineering | gitolite user |
summaryrefslogtreecommitdiff |
author | Simon Doppler <dopsi@dopsi.ch> | 2017-08-07 17:12:05 +0200 |
---|---|---|
committer | Simon Doppler <dopsi@dopsi.ch> | 2017-08-07 17:12:05 +0200 |
commit | ed9232d04bb4b8fd175f6c3002cf4fd265c17af2 (patch) | |
tree | f734fbd00447b67e726876484f5d5849ceff9239 /al32-mktorrent.sh | |
parent | b0cef789aa402ba5aa6ccab66a6e6b8b23dcb907 (diff) |
-rw-r--r-- | al32-mktorrent.sh | 2 |
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 |