diff options
author | Tomas Krizek <tkrizek@redhat.com> | 2016-09-01 17:19:19 +0200 |
---|---|---|
committer | David Kupka <dkupka@redhat.com> | 2016-09-02 09:00:49 +0200 |
commit | 9d49b4c7e740fb909d8955d23aeb50b5d73d0b23 (patch) | |
tree | bc319974dfab5a71c66bcb2a601264006f2cdf66 /contrib/completion | |
parent | 371254fc4b36cb4d89351edb19c88a85e5a33a1b (diff) | |
download | freeipa-9d49b4c7e740fb909d8955d23aeb50b5d73d0b23.tar.gz freeipa-9d49b4c7e740fb909d8955d23aeb50b5d73d0b23.tar.xz freeipa-9d49b4c7e740fb909d8955d23aeb50b5d73d0b23.zip |
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>
Diffstat (limited to 'contrib/completion')
-rw-r--r-- | contrib/completion/ipa.bash_completion | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/ipa.bash_completion b/contrib/completion/ipa.bash_completion index 36b82bdb7..33ad1709b 100644 --- a/contrib/completion/ipa.bash_completion +++ b/contrib/completion/ipa.bash_completion @@ -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() |