richardphibel / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
84b277
From ab6c4755057a7d852f1eaed62920ef1b25a19507 Mon Sep 17 00:00:00 2001
84b277
From: Dan Kilman <dankilman@gmail.com>
84b277
Date: Sun, 13 Apr 2014 18:06:13 +0300
84b277
Subject: [PATCH] bash completion: fix __get_startable_units
84b277
84b277
(cherry-picked from a163b64c4b08e8a4ad39a9a295acf3d1634024a3)
84b277
84b277
Resolves: #1147524
84b277
---
84b277
 shell-completion/bash/systemctl | 2 +-
84b277
 1 file changed, 1 insertion(+), 1 deletion(-)
84b277
84b277
diff --git a/shell-completion/bash/systemctl b/shell-completion/bash/systemctl
84b277
index cbf0eb7..c1cd416 100644
84b277
--- a/shell-completion/bash/systemctl
84b277
+++ b/shell-completion/bash/systemctl
84b277
@@ -56,7 +56,7 @@ __get_all_units      () { __systemctl $1 list-units --all \
84b277
 __get_active_units   () { __systemctl $1 list-units       \
84b277
         | { while read -r a b; do echo " $a"; done; }; }
84b277
 __get_startable_units () { __systemctl $1 list-units --all -t service,timer,socket,mount,automount,path,snapshot,swap \
84b277
-        | { while read -r a b c d; do [[ $c == "inactive" || $c == "failed " ]] && echo " $a"; done; }; }
84b277
+        | { while read -r a b c d; do [[ $c == "inactive" || $c == "failed" ]] && echo " $a"; done; }; }
84b277
 __get_failed_units   () { __systemctl $1 list-units       \
84b277
         | { while read -r a b c d; do [[ $c == "failed"   ]] && echo " $a"; done; }; }
84b277
 __get_enabled_units  () { __systemctl $1 list-unit-files  \