summaryrefslogtreecommitdiff
path: root/shell-completion/bash/systemctl
diff options
context:
space:
mode:
Diffstat (limited to 'shell-completion/bash/systemctl')
-rw-r--r--shell-completion/bash/systemctl2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell-completion/bash/systemctl b/shell-completion/bash/systemctl
index 232d2d65f4..dc7ef66898 100644
--- a/shell-completion/bash/systemctl
+++ b/shell-completion/bash/systemctl
@@ -146,7 +146,7 @@ _systemctl () {
[TARGETS]='set-default'
)
- for ((i=0; i <= COMP_CWORD; i++)); do
+ for ((i=0; i < COMP_CWORD; i++)); do
if __contains_word "${COMP_WORDS[i]}" ${VERBS[*]} &&
! __contains_word "${COMP_WORDS[i-1]}" ${OPTS[ARG]}; then
verb=${COMP_WORDS[i]}