diff --git a/shell-completion/bash/systemd-analyze b/shell-completion/bash/systemd-analyze index e7844f92d9..d986184884 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() {