From ae0ea6a329f227c5dd1b3cecfe2bd017ea289966 Mon Sep 17 00:00:00 2001 From: TNE <2370061-TotallyNotElite@users.noreply.gitlab.com> Date: Sun, 8 Aug 2021 19:51:23 +0000 Subject: [PATCH] Failed mirrorlist update should not be fatal --- usr/bin/update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/bin/update b/usr/bin/update index 135bd3a..becbbc2 100755 --- a/usr/bin/update +++ b/usr/bin/update @@ -25,7 +25,7 @@ fi if [ -x /usr/bin/reflector ]; then # Refresh mirrorlist echo "Refreshing mirrorlists.." - sudo reflector --latest 5 --age 2 --fastest 5 --protocol https --sort rate --save /etc/pacman.d/mirrorlist && cat /etc/pacman.d/mirrorlist || false + sudo reflector --latest 5 --age 2 --fastest 5 --protocol https --sort rate --save /etc/pacman.d/mirrorlist && cat /etc/pacman.d/mirrorlist || { echo -e "\033[1;31m\nFailed to update mirrorlist\n\033[0m"; } fi # Check for keyring update & update as needed