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

@ -103,6 +103,11 @@ update-system() {
command -v yaourt > /dev/null 2>&1 command -v yaourt > /dev/null 2>&1
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
yaourt -Syu yaourt -Syu
else
command -v yay > /dev/null 2>&1
if [ $? -eq 0 ]; then
yay
else else
command -v pacman > /dev/null 2>&1 command -v pacman > /dev/null 2>&1
@ -110,6 +115,7 @@ update-system() {
sudo pacman -Syu sudo pacman -Syu
fi fi
fi fi
fi
# Fedora based systems # Fedora based systems
command -v dnf > /dev/null 2>&1 command -v dnf > /dev/null 2>&1