completion: fix typo in accessing array index

Remove spurious '}'. This error went unnoticed so far because Bash
doesn't complain.
This commit is contained in:
Ramkumar Ramachandra
2012-10-28 02:14:41 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent 9c2cd81e0e
commit a8f454e8a3
+2 -2
View File
@@ -122,7 +122,7 @@ _systemctl () {
for ((i=0; $i <= $COMP_CWORD; i++)); do
if __contains_word "${COMP_WORDS[i]}" ${VERBS[*]} &&
! __contains_word "${COMP_WORDS[i-1]}" ${OPTS[ARG}]}; then
! __contains_word "${COMP_WORDS[i-1]}" ${OPTS[ARG]}; then
verb=${COMP_WORDS[i]}
break
fi
@@ -245,7 +245,7 @@ _loginctl () {
for ((i=0; $i <= $COMP_CWORD; i++)); do
if __contains_word "${COMP_WORDS[i]}" ${VERBS[*]} &&
! __contains_word "${COMP_WORDS[i-1]}" ${OPTS[ARG}]}; then
! __contains_word "${COMP_WORDS[i-1]}" ${OPTS[ARG]}; then
verb=${COMP_WORDS[i]}
break
fi