From e9efb02aa06c31168fd5c3a10377432aec588335 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Tue, 26 Sep 2023 10:13:40 +0200 Subject: [PATCH] Update with paru --- bin/update | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/bin/update b/bin/update index 9b82de7..c91eb91 100755 --- a/bin/update +++ b/bin/update @@ -195,17 +195,25 @@ update-system() { fi # Archlinux based systems - command -v yay > /dev/null 2>&1 + command -v paru > /dev/null 2>&1 if [ $? -eq 0 ]; then - yay -Syu --noconfirm - yay -Syua --noconfirm + paru -Syu --noconfirm else - command -v pacman > /dev/null 2>&1 + command -v yay > /dev/null 2>&1 if [ $? -eq 0 ]; then - echo $password | sudo -Sp "" pacman -Syu --noconfirm + yay -Syu --noconfirm + yay -Syua --noconfirm + else + + command -v pacman > /dev/null 2>&1 + + if [ $? -eq 0 ]; then + echo $password | sudo -Sp "" pacman -Syu --noconfirm + fi + fi fi