diff --git a/zsh/bin/update b/zsh/bin/update index 15d1290..8daec83 100755 --- a/zsh/bin/update +++ b/zsh/bin/update @@ -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