pacman conditional is broken
This commit is contained in:
parent
ac47c61167
commit
d916ad2967
1 changed files with 4 additions and 0 deletions
|
@ -18,6 +18,10 @@ if [[ ${zpacman_frontend} == 'auto' ]]; then
|
||||||
else
|
else
|
||||||
zpacman_frontend='pacman'
|
zpacman_frontend='pacman'
|
||||||
fi
|
fi
|
||||||
|
elif (( ! $+zpacman_fontend )); then
|
||||||
|
# this conditional is broken, for unknown reasons.
|
||||||
|
# it should test if zpacman_frontend is set, but is hit regardless of if it is set or not.
|
||||||
|
zpacman_frontend='pacman'
|
||||||
elif (( ! $+commands[${zpacman_frontend}] )); then
|
elif (( ! $+commands[${zpacman_frontend}] )); then
|
||||||
print "pacman frontend \"${zpacman_frontend}\" is invalid or not installed. Reverting to \"pacman\"." >&2
|
print "pacman frontend \"${zpacman_frontend}\" is invalid or not installed. Reverting to \"pacman\"." >&2
|
||||||
print "you can fix this error by editing the 'zpacman_frontend' variable in your .zimrc" >&2
|
print "you can fix this error by editing the 'zpacman_frontend' variable in your .zimrc" >&2
|
||||||
|
|
Loading…
Reference in a new issue