1
0
Fork 0
mirror of synced 2024-12-22 16:18:59 -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
# 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