summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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