summaryrefslogtreecommitdiffstats
path: root/contrib/completion
diff options
context:
space:
mode:
authorTomas Krizek <tkrizek@redhat.com>2016-09-01 17:19:19 +0200
committerDavid Kupka <dkupka@redhat.com>2016-09-02 09:00:49 +0200
commit9d49b4c7e740fb909d8955d23aeb50b5d73d0b23 (patch)
treebc319974dfab5a71c66bcb2a601264006f2cdf66 /contrib/completion
parent371254fc4b36cb4d89351edb19c88a85e5a33a1b (diff)
downloadfreeipa-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_completion2
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()