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:41:04 +01:00
parent 870666d355
commit 47a734cb2f

2
archfi
View file

@ -758,7 +758,7 @@ installmenu(){
}
selectmirrorsbycountry() {
if [[ -f /etc/pacman.d/mirrorlist.backup ]]; then
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 )