chiark / gitweb /
timesyncd: also try next server when sendto() fails
[elogind.git] / shell-completion / bash / hostnamectl
index 38ab134..9c75da9 100644 (file)
@@ -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