From 05bdada235ad778b4e338754740c7b73c2265aac Mon Sep 17 00:00:00 2001 From: dr460nf1r3 Date: Sun, 27 Jun 2021 10:36:44 +0200 Subject: [PATCH] Make update command more verbose --- usr/bin/update | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/usr/bin/update b/usr/bin/update index 24532f6..2a1638e 100755 --- a/usr/bin/update +++ b/usr/bin/update @@ -1,12 +1,17 @@ #!/bin/bash # 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 +echo "" # Check for keyring update & update as needed +echo "Checking for keyring update, then update as needed.." 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 + sudo pacman -Sy archlinux-keyring blackarch-keyring chaotic-keyring --needed && sudo pacman -Su +else sudo pacman -Sy archlinux-keyring chaotic-keyring --needed && sudo pacman -Su fi +echo "" # Update mlocate index -pacman -Qs mlocate && sudo updatedb +pacman -Qs mlocate > /dev/null && echo "Updating mlocate index.." && sudo updatedb +echo "System updated!"