Failed mirrorlist update should not be fatal

This commit is contained in:
TNE 2021-08-08 19:51:23 +00:00
parent 034051cbb4
commit ae0ea6a329
1 changed files with 1 additions and 1 deletions

View File

@ -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