summaryrefslogtreecommitdiff
path: root/shell-completion/bash/udevadm
diff options
context:
space:
mode:
Diffstat (limited to 'shell-completion/bash/udevadm')
-rw-r--r--shell-completion/bash/udevadm2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell-completion/bash/udevadm b/shell-completion/bash/udevadm
index d58cdf532d..b828b8dd7c 100644
--- a/shell-completion/bash/udevadm
+++ b/shell-completion/bash/udevadm
@@ -36,7 +36,7 @@ _udevadm() {
local verbs=(info trigger settle control monitor hwdb test-builtin test)
- 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]}