summaryrefslogtreecommitdiff
path: root/shell-completion/bash/hostnamectl
diff options
context:
space:
mode:
Diffstat (limited to 'shell-completion/bash/hostnamectl')
-rw-r--r--shell-completion/bash/hostnamectl2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell-completion/bash/hostnamectl b/shell-completion/bash/hostnamectl
index 38ab1344f3..9c75da9e7f 100644
--- a/shell-completion/bash/hostnamectl
+++ b/shell-completion/bash/hostnamectl
@@ -41,7 +41,7 @@ _hostnamectl() {
[NAME]='set-hostname'
)
- for ((i=0; i <= COMP_CWORD; i++)); do
+ for ((i=0; i < COMP_CWORD; i++)); do
if __contains_word "${COMP_WORDS[i]}" ${VERBS[*]}; then
verb=${COMP_WORDS[i]}
break