Update with paru

This commit is contained in:
Thomas Forgione 2023-09-26 10:13:40 +02:00
parent bec76bff3b
commit e9efb02aa0
1 changed files with 13 additions and 5 deletions

View File

@ -195,17 +195,25 @@ update-system() {
fi fi
# Archlinux based systems # Archlinux based systems
command -v yay > /dev/null 2>&1 command -v paru > /dev/null 2>&1
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
yay -Syu --noconfirm paru -Syu --noconfirm
yay -Syua --noconfirm
else else
command -v pacman > /dev/null 2>&1 command -v yay > /dev/null 2>&1
if [ $? -eq 0 ]; then 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
fi fi