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