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