1
0
Fork 0
mirror of synced 2024-12-22 16:18:59 -05:00

Improve update

This commit is contained in:
dr460nf1r3 2021-06-26 20:16:50 +02:00
parent 7581fc433f
commit 17fba6eb1c
No known key found for this signature in database
GPG key ID: BE75B9D9767036C2

View file

@ -3,14 +3,10 @@
sudo reflector --latest 5 --age 2 --fastest 5 --protocol https --sort rate --save /etc/pacman.d/mirrorlist && cat /etc/pacman.d/mirrorlist
# Check for keyring update & update as needed
if "/usr/bin/checkupdates" | grep chaotic-keyring; then
sudo pacman -Sy chaotic-keyring && sudo pacman -Su
elif "/usr/bin/checkupdates" | grep archlinux-keyring; then
sudo pacman -Sy archlinux-keyring && sudo pacman -Su
else sudo pacman -Syu
# Update fish autocompletions
fish_update_completions
if pacman -Qs blackarch-keyring; then
sudo pacman -Sy archlinux-keyring blackarch-keyring chaotic-keyring --needed && pacman -Su
else pacman -Sy archlinux-keyring chaotic-keyring --needed && pacman -Su
fi
# Update mlocate index
sudo updatedb
pacman -Qs mlocate && sudo updatedb