summaryrefslogtreecommitdiff
path: root/bash-completion/systemd-bash-completion.sh
diff options
context:
space:
mode:
authorRamkumar Ramachandra <artagnon@gmail.com>2011-12-02 22:14:32 +0530
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-10-28 02:14:41 +0200
commita8f454e8a387eaf752a64955dcef8cbbae1b77ed (patch)
tree4ab76f55faa6b9b1fda308e29edcd57de7e8eb95 /bash-completion/systemd-bash-completion.sh
parent9c2cd81e0ef9cf45adc6108eaea172d722f39321 (diff)
completion: fix typo in accessing array index
Remove spurious '}'. This error went unnoticed so far because Bash doesn't complain.
Diffstat (limited to 'bash-completion/systemd-bash-completion.sh')
-rw-r--r--bash-completion/systemd-bash-completion.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash-completion/systemd-bash-completion.sh b/bash-completion/systemd-bash-completion.sh
index d6adfce0ea..38cde3b5e9 100644
--- a/bash-completion/systemd-bash-completion.sh
+++ b/bash-completion/systemd-bash-completion.sh
@@ -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