summaryrefslogtreecommitdiffstats
path: root/shell-completion
diff options
context:
space:
mode:
authorDan Kilman <dankilman@gmail.com>2014-04-13 17:06:13 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-04-13 17:39:43 +0200
commita163b64c4b08e8a4ad39a9a295acf3d1634024a3 (patch)
treefd1bc781d9eb97e768c4201e50b085dc94494a1f /shell-completion
parentpath-util: also check for existence of binary when given absolute path (diff)
downloadsystemd-a163b64c4b08e8a4ad39a9a295acf3d1634024a3.tar.xz
systemd-a163b64c4b08e8a4ad39a9a295acf3d1634024a3.zip
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 \