From 870666d3558751bb5d56e7b5ef70655c5dee05fd Mon Sep 17 00:00:00 2001 From: Michael Picht Date: Sun, 8 Dec 2019 06:30:24 +0100 Subject: [PATCH] corrected selection of mirrors by country Signed-off-by: Michael Picht --- archfi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/archfi b/archfi index 69e61a0..c8a894e 100644 --- a/archfi +++ b/archfi @@ -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