fix(shell-completion): correct conditional

This commit is contained in:
Eisuke Kawashima
2025-07-14 19:17:53 +09:00
parent 12e64a4848
commit cb2e0dc4f5

View 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() {