1
0
Fork 0
mirror of synced 2024-11-26 17:25:35 -05:00

[pacman] don't call sudo on pacaur

like yaourt, pacaur also handles SUID itself.

Closes #38
This commit is contained in:
Tmplt 2016-03-10 18:42:35 +01:00 committed by Matt Hamilton
parent 4ac66646c4
commit 6cb9d54ffb

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" ]]; then elif [[ ${zpacman_frontend} == ("yaourt"|"pacaur") ]]; then
# yaourt handles SUID itself # yaourt and pacaur handles 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}"