From 86cb0691b71873c6fe30a103dc98153e2d9ab507 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Thu, 5 Dec 2013 21:33:08 -0500 Subject: shell-completion: busctl --- shell-completion/bash/systemctl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shell-completion/bash/systemctl') diff --git a/shell-completion/bash/systemctl b/shell-completion/bash/systemctl index e96b1f2ccc..86ea33c6e2 100644 --- a/shell-completion/bash/systemctl +++ b/shell-completion/bash/systemctl @@ -146,7 +146,7 @@ _systemctl () { [TARGETS]='set-default' ) - 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]} @@ -154,7 +154,7 @@ _systemctl () { fi done - if [[ -z $verb ]]; then + if [[ -z $verb ]]; then comps="${VERBS[*]}" elif __contains_word "$verb" ${VERBS[ALL_UNITS]}; then -- cgit v1.2.3-54-g00ecf