]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
fix(shell-completion): correct conditional
authorEisuke Kawashima <e-kwsm@users.noreply.github.com>
Mon, 14 Jul 2025 10:17:53 +0000 (19:17 +0900)
committerEisuke Kawashima <e-kwsm@users.noreply.github.com>
Mon, 14 Jul 2025 11:24:26 +0000 (20:24 +0900)
shell-completion/bash/systemd-analyze

index e7844f92d9e64a6293745670fc487a6cf4e8490e..d98618488480bc3485eda5da3f6ecbd09b76afd4 100644 (file)
@@ -40,7 +40,7 @@ __get_units_all() {
 
 __get_services() {
     systemctl list-units --no-legend --no-pager --plain -t service --all $1 |
-        { while read -r a b c; do [[ $b == "loaded" ]]; echo " $a"; done; }
+        { while read -r a b c; do [[ $b == "loaded" ]] && echo " $a"; done; }
 }
 
 __get_syscall_sets() {