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:
Zbigniew Jędrzejewski-Szmek 2017-01-11 14:45:19 -05:00
parent 69dc692252
commit 99171d2fdf
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -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
}