]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bash-completion: process only non-template units for systemctl isolate
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 25 Apr 2019 17:16:06 +0000 (19:16 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 26 Apr 2019 06:05:05 +0000 (08:05 +0200)
shell-completion/bash/systemctl.in

index dfb2d4a4c9e9d1a3b3c4617e1cf9dbda3e3a9bb4..8986f4537ab867d611eeee2547ebe24c63bbf842 100644 (file)
@@ -273,7 +273,7 @@ _systemctl () {
 
     elif __contains_word "$verb" ${VERBS[ISOLATABLE_UNITS]}; then
         comps=$( __filter_units_by_properties $mode AllowIsolate=yes \
-                                              $( __get_all_units $mode "$cur" ) )
+                                              $( __get_non_template_units $mode "$cur" ) )
         compopt -o filenames
 
     elif __contains_word "$verb" ${VERBS[FAILED_UNITS]}; then