Update with paru
This commit is contained in:
parent
bec76bff3b
commit
e9efb02aa0
18
bin/update
18
bin/update
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue