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 authored and David Kupka committed 2016-09-02 09:00:49 +02:00
1 parent 371254fc4b
commit 9d49b4c7e7
1 file changed
+1 -1
+1 -1
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()