1
0
Fork 0
mirror of synced 2024-11-22 15:25:34 -05:00

[pacman] add yay to SUID handling AUR helpers

Closes #279
This commit is contained in:
Sebastian Stammler 2018-06-21 21:58:45 +02:00 committed by Matt Hamilton
parent 903954985f
commit 236eb14d59

View file

@ -24,8 +24,8 @@ elif (( ! ${+commands[${zpacman_frontend}]} )); then
You can fix this error by editing the 'zpacman_frontend' variable in your .zimrc" >&2 You can fix this error by editing the 'zpacman_frontend' variable in your .zimrc" >&2
zpacman_frontend='pacman' zpacman_frontend='pacman'
zpacman_frontend_priv='sudo pacman' zpacman_frontend_priv='sudo pacman'
elif [[ ${zpacman_frontend} == ("yaourt"|"pacaur") ]]; then elif [[ ${zpacman_frontend} == ("yaourt"|"pacaur"|"yay") ]]; then
# yaourt and pacaur handles SUID themselves # those AUR helpers handle SUID themselves
zpacman_frontend_priv="${zpacman_frontend}" zpacman_frontend_priv="${zpacman_frontend}"
else else
zpacman_frontend_priv="sudo ${zpacman_frontend}" zpacman_frontend_priv="sudo ${zpacman_frontend}"