Improve update
This commit is contained in:
parent
7581fc433f
commit
17fba6eb1c
1 changed files with 5 additions and 9 deletions
|
@ -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
|
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
|
# Check for keyring update & update as needed
|
||||||
if "/usr/bin/checkupdates" | grep chaotic-keyring; then
|
if pacman -Qs blackarch-keyring; then
|
||||||
sudo pacman -Sy chaotic-keyring && sudo pacman -Su
|
sudo pacman -Sy archlinux-keyring blackarch-keyring chaotic-keyring --needed && pacman -Su
|
||||||
elif "/usr/bin/checkupdates" | grep archlinux-keyring; then
|
else pacman -Sy archlinux-keyring chaotic-keyring --needed && pacman -Su
|
||||||
sudo pacman -Sy archlinux-keyring && sudo pacman -Su
|
fi
|
||||||
else sudo pacman -Syu
|
|
||||||
|
|
||||||
# Update fish autocompletions
|
|
||||||
fish_update_completions
|
|
||||||
|
|
||||||
# Update mlocate index
|
# Update mlocate index
|
||||||
sudo updatedb
|
pacman -Qs mlocate && sudo updatedb
|
||||||
|
|
Loading…
Reference in a new issue