mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
shell-completion: redirect all errors from systemctl to /dev/null
Completion scripts should not generate errors, ever. https://bugzilla.redhat.com/show_bug.cgi?id=1409649
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
__systemctl() {
|
||||
local mode=$1; shift 1
|
||||
systemctl $mode --full --no-legend "$@"
|
||||
systemctl $mode --full --no-legend "$@" 2>/dev/null
|
||||
}
|
||||
|
||||
__systemd_properties() {
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
|
||||
__systemctl()
|
||||
{
|
||||
systemctl $_sys_service_mgr --full --no-legend --no-pager "$@"
|
||||
systemctl $_sys_service_mgr --full --no-legend --no-pager "$@" 2>/dev/null
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user