Don't show error messages in bash completion

Redirect bash error output to prevent displaying error
messages in bash completion for ipa command.

https://fedorahosted.org/freeipa/ticket/6273

Reviewed-By: David Kupka <dkupka@redhat.com>
This commit is contained in:
Tomas Krizek 2016-09-01 17:19:19 +02:00 committed by David Kupka
parent 371254fc4b
commit 9d49b4c7e7

View File

@ -11,7 +11,7 @@
_ipa_commands()
{
ipa help commands | sed -r 's/^([-[:alnum:]]*).*/\1/' | grep '^[[:alnum:]]'
ipa help commands 2>/dev/null | sed -r 's/^([-[:alnum:]]*).*/\1/' | grep '^[[:alnum:]]'
}
_ipa()