This commit is contained in:
Thomas Forgione 2019-02-20 10:24:21 +01:00
parent 9744543884
commit 125603fba3
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 8 additions and 2 deletions

View File

@ -104,10 +104,16 @@ update-system() {
if [ $? -eq 0 ]; then
yaourt -Syu
else
command -v pacman > /dev/null 2>&1
command -v yay > /dev/null 2>&1
if [ $? -eq 0 ]; then
sudo pacman -Syu
yay
else
command -v pacman > /dev/null 2>&1
if [ $? -eq 0 ]; then
sudo pacman -Syu
fi
fi
fi