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