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