mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
shell-completion: drop deprecated cgroup controller suggestion
This commit is contained in:
@@ -59,9 +59,7 @@ _systemd_cgtop() {
|
||||
fi
|
||||
|
||||
COMPREPLY=( $(compgen -W '${OPTS[*]}' -- "$cur") )
|
||||
if [ -d /sys/fs/cgroup/systemd/ ]; then
|
||||
COMPREPLY+=( $(cd /sys/fs/cgroup/systemd/ && compgen -o nospace -o dirnames "$cur") )
|
||||
elif [ -d /sys/fs/cgroup/ ]; then
|
||||
if [ -d /sys/fs/cgroup/ ]; then
|
||||
COMPREPLY+=( $(cd /sys/fs/cgroup/ && compgen -o nospace -o dirnames "$cur") )
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user