From 5a59260464009dbbb5dcb4cb3c5ed4d9941fa174 Mon Sep 17 00:00:00 2001 From: librewish Date: Fri, 24 Sep 2021 11:06:10 +0530 Subject: [PATCH] add pacman files update to last --- usr/bin/update | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/usr/bin/update b/usr/bin/update index 9c24225..cdcdeab 100755 --- a/usr/bin/update +++ b/usr/bin/update @@ -30,14 +30,6 @@ fi echo "" -# Update pacman Files database -echo "Checking pacman files database update.." -sudo pacman -Fy - -echo "" -echo "pacman files database updated!" -echo "" - # Check for keyring update & update as needed echo "Checking for keyring update before starting full system update.." if pacman -Qq blackarch-keyring &> /dev/null; then @@ -47,6 +39,14 @@ else fi echo "" +# Update pacman Files database +echo "Checking pacman files database update.." +sudo pacman -Fy + +echo "" +echo "pacman files database updated!" +echo "" + # Update mlocate index if [ -x /usr/bin/locate ]; then echo "Updating mlocate index.."