From cb2e0dc4f56b70bd42ec16043fd733a0ba4d687f Mon Sep 17 00:00:00 2001 From: Eisuke Kawashima Date: Mon, 14 Jul 2025 19:17:53 +0900 Subject: [PATCH] fix(shell-completion): correct conditional --- shell-completion/bash/systemd-analyze | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell-completion/bash/systemd-analyze b/shell-completion/bash/systemd-analyze index e7844f92d9e..d9861848848 100644 --- a/shell-completion/bash/systemd-analyze +++ b/shell-completion/bash/systemd-analyze @@ -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() { -- 2.47.3