From 993d72ce8347651bcb454d3b947a2b52f9164c41 Mon Sep 17 00:00:00 2001 From: kprkpr Date: Tue, 27 Sep 2016 23:44:59 +0200 Subject: [PATCH] fix pacman problem --- archinstall/archinstall.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/archinstall/archinstall.sh b/archinstall/archinstall.sh index 2a3efbf..1c8c4bf 100644 --- a/archinstall/archinstall.sh +++ b/archinstall/archinstall.sh @@ -40,6 +40,11 @@ if [[ $? != 0 ]];then fatalerror "$(T "Network connection error, please check it")" fi } +function pacmanerror { +if [[ $? != 0 ]];then +fatalerror "$(T "Pacman error, problems in repositories, apologizes. You have to try later...")" +fi +} function inchroot { chroot /mnt /bin/bash -c "$*" @@ -292,6 +297,7 @@ if [[ $isoffline = "0" ]];then reflector --verbose -l 6 --sort rate --save /etc/pacman.d/mirrorlist tput setaf 2 ; echo "$(T "Downloading")" ; tput setaf 9 pacstrap -C pacman.conf /mnt/ base btrfs-progs jkarch-mirrorlist + pacmanerror mv pacman.conf /mnt/etc/pacman.conf fi if [[ $isoffline = "1" ]];then