corrected selection of mirrors by country

Signed-off-by: Michael Picht <mipi@fsfe.org>
This commit is contained in:
Michael Picht 2019-12-08 06:30:24 +01:00
parent 08f81dfcd0
commit 870666d355

4
archfi
View file

@ -758,7 +758,9 @@ installmenu(){
}
selectmirrorsbycountry() {
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
if [[ -f /etc/pacman.d/mirrorlist.backup ]]; then
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
fi
items=$( sed -n "/^##.*/N; {s/^## \(.*\)\nServer.*/\1/p}" < /etc/pacman.d/mirrorlist.backup | sort -u )
options=()
IFS_ORIG=$IFS