summaryrefslogtreecommitdiff
path: root/shell-completion
diff options
context:
space:
mode:
authorDan Kilman <dankilman@gmail.com>2014-04-13 18:06:13 +0300
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-04-13 11:39:43 -0400
commita163b64c4b08e8a4ad39a9a295acf3d1634024a3 (patch)
treefd1bc781d9eb97e768c4201e50b085dc94494a1f /shell-completion
parentb972115c97b9ec1bb17ee4897da6b85d82727ca8 (diff)
bash completion: fix __get_startable_units
Diffstat (limited to 'shell-completion')
-rw-r--r--shell-completion/bash/systemctl2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell-completion/bash/systemctl b/shell-completion/bash/systemctl
index 992e52dbb0..e1c842006e 100644
--- a/shell-completion/bash/systemctl
+++ b/shell-completion/bash/systemctl
@@ -56,7 +56,7 @@ __get_all_units () { __systemctl $1 list-units --all \
__get_active_units () { __systemctl $1 list-units \
| { while read -r a b; do echo " $a"; done; }; }
__get_startable_units () { __systemctl $1 list-units --all -t service,timer,socket,mount,automount,path,snapshot,swap \
- | { while read -r a b c d; do [[ $c == "inactive" || $c == "failed " ]] && echo " $a"; done; }; }
+ | { while read -r a b c d; do [[ $c == "inactive" || $c == "failed" ]] && echo " $a"; done; }; }
__get_failed_units () { __systemctl $1 list-units \
| { while read -r a b c d; do [[ $c == "failed" ]] && echo " $a"; done; }; }
__get_enabled_units () { __systemctl $1 list-unit-files \