From 59953940272cba8a3e98a337ce1f531164641c65 Mon Sep 17 00:00:00 2001 From: Tmplt Date: Thu, 10 Mar 2016 18:42:35 +0100 Subject: [PATCH] [pacman] don't call sudo on pacaur like yaourt, pacaur also handles SUID itself. Closes #38 --- modules/pacman/init.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/pacman/init.zsh b/modules/pacman/init.zsh index 640edc3..4723f11 100644 --- a/modules/pacman/init.zsh +++ b/modules/pacman/init.zsh @@ -24,8 +24,8 @@ elif (( ! ${+commands[${zpacman_frontend}]} )); then You can fix this error by editing the 'zpacman_frontend' variable in your .zimrc" >&2 zpacman_frontend='pacman' zpacman_frontend_priv='sudo pacman' -elif [[ ${zpacman_frontend} == "yaourt" ]]; then - # yaourt handles SUID itself +elif [[ ${zpacman_frontend} == ("yaourt"|"pacaur") ]]; then + # yaourt and pacaur handles SUID themselves zpacman_frontend_priv="${zpacman_frontend}" else zpacman_frontend_priv="sudo ${zpacman_frontend}"