X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=shell-completion%2Fbash%2Ftimedatectl;h=1a0acc6c7c089793d59d8de4d895cb51c47bc0c7;hp=c6a6545257215201cf0f75cd0a0fe5eb888c6809;hb=becad8f1ed696433b9841cbb9c4603c303338d30;hpb=a72d698d0d9ff9c158155b44cdc77376df31a317 diff --git a/shell-completion/bash/timedatectl b/shell-completion/bash/timedatectl index c6a654525..1a0acc6c7 100644 --- a/shell-completion/bash/timedatectl +++ b/shell-completion/bash/timedatectl @@ -52,7 +52,7 @@ _timedatectl() { [TIME]='set-time' ) - 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