From 3f38c0fb7e8c5be0488f82f7af2353391ab971a8 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Wed, 13 Mar 2019 10:46:24 +0100 Subject: [PATCH] Don't use yaourt :scream: --- zsh/bin/update | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/zsh/bin/update b/zsh/bin/update index 8daec83..4bb9eb2 100755 --- a/zsh/bin/update +++ b/zsh/bin/update @@ -100,20 +100,15 @@ update-system() { fi # Archlinux based systems - command -v yaourt > /dev/null 2>&1 + command -v yay > /dev/null 2>&1 + if [ $? -eq 0 ]; then - yaourt -Syu + yay else - command -v yay > /dev/null 2>&1 + command -v pacman > /dev/null 2>&1 if [ $? -eq 0 ]; then - yay - else - command -v pacman > /dev/null 2>&1 - - if [ $? -eq 0 ]; then - sudo pacman -Syu - fi + sudo pacman -Syu fi fi