summaryrefslogtreecommitdiff
path: root/shell-completion
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-03-19 14:55:50 +0100
committerHarald Hoyer <harald@redhat.com>2013-03-19 15:04:02 +0100
commit1535fb73799f1c6079e8329af5d710bf9d55cbaf (patch)
tree3051cb36ced6fa377583756d9aeb86601a183429 /shell-completion
parent278e73d6b74f1db24d56576162850a0772fd25a9 (diff)
shell-completion/bash/journalctl: suppress stderr
Diffstat (limited to 'shell-completion')
-rw-r--r--shell-completion/bash/journalctl4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell-completion/bash/journalctl b/shell-completion/bash/journalctl
index 1fca5ad31b..19362ae77b 100644
--- a/shell-completion/bash/journalctl
+++ b/shell-completion/bash/journalctl
@@ -60,10 +60,10 @@ _journalctl() {
comps=${__journal_fields[*]}
;;
--unit|-u)
- comps=$(journalctl -F '_SYSTEMD_UNIT')
+ comps=$(journalctl -F '_SYSTEMD_UNIT' 2>/dev/null)
;;
--user-unit)
- comps=$(journalctl -F '_SYSTEMD_USER_UNIT')
+ comps=$(journalctl -F '_SYSTEMD_USER_UNIT' 2>/dev/null)
;;
*)
return 0