summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-04-29 11:37:43 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-04-29 11:37:43 +0200
commit5a3ed6b2b5f12df8591386802f5d6484cb9bf561 (patch)
tree6d03ad78e6201fcd9c6ab919379f0e7d41cf0162
parent0e5ebcd7e7771c470c75f3ece270242a96d57a35 (diff)
downloadbin-5a3ed6b2b5f12df8591386802f5d6484cb9bf561.tar.gz
bin-5a3ed6b2b5f12df8591386802f5d6484cb9bf561.tar.xz
cj: detect ccze
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xcj6
1 files changed, 5 insertions, 1 deletions
diff --git a/cj b/cj
index 9096d84..fa459a5 100755
--- a/cj
+++ b/cj
@@ -1,3 +1,7 @@
#!/bin/bash
-journalctl -f "$@" | ccze -A -o nolookups
+if type ccze &>/dev/null; then
+ journalctl -f "$@" | ccze -A -o nolookups
+else
+ journalctl -f "$@"
+fi