1
0
Fork 0
mirror of synced 2024-11-22 10:05:37 -05:00

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

View file

@ -25,7 +25,7 @@ fi
if [ -x /usr/bin/reflector ]; then if [ -x /usr/bin/reflector ]; then
# Refresh mirrorlist # Refresh mirrorlist
echo "Refreshing mirrorlists.." 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 fi
# Check for keyring update & update as needed # Check for keyring update & update as needed