From 125603fba3ffae644f3ad1f513986bea8e498929 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Wed, 20 Feb 2019 10:24:21 +0100 Subject: [PATCH] Test yay --- zsh/bin/update | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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