Failed mirrorlist update should not be fatal
This commit is contained in:
parent
034051cbb4
commit
ae0ea6a329
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue