Make update command more verbose
This commit is contained in:
parent
17fba6eb1c
commit
05bdada235
1 changed files with 8 additions and 3 deletions
|
@ -1,12 +1,17 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Refresh mirrorlist
|
# 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
|
sudo reflector --latest 5 --age 2 --fastest 5 --protocol https --sort rate --save /etc/pacman.d/mirrorlist && cat /etc/pacman.d/mirrorlist
|
||||||
|
echo ""
|
||||||
|
|
||||||
# Check for keyring update & update as needed
|
# Check for keyring update & update as needed
|
||||||
|
echo "Checking for keyring update, then update as needed.."
|
||||||
if pacman -Qs blackarch-keyring; then
|
if pacman -Qs blackarch-keyring; then
|
||||||
sudo pacman -Sy archlinux-keyring blackarch-keyring chaotic-keyring --needed && pacman -Su
|
sudo pacman -Sy archlinux-keyring blackarch-keyring chaotic-keyring --needed && sudo pacman -Su
|
||||||
else pacman -Sy archlinux-keyring chaotic-keyring --needed && pacman -Su
|
else sudo pacman -Sy archlinux-keyring chaotic-keyring --needed && sudo pacman -Su
|
||||||
fi
|
fi
|
||||||
|
echo ""
|
||||||
|
|
||||||
# Update mlocate index
|
# Update mlocate index
|
||||||
pacman -Qs mlocate && sudo updatedb
|
pacman -Qs mlocate > /dev/null && echo "Updating mlocate index.." && sudo updatedb
|
||||||
|
echo "System updated!"
|
||||||
|
|
Loading…
Reference in a new issue