From 9d6851cbbd52163aa3cf97d6990384f682405530 Mon Sep 17 00:00:00 2001 From: Ian Macdonald Date: Fri, 25 Jan 2019 10:43:55 +0100 Subject: [PATCH] Redundant use of cat(1). --- .../java/com/topjohnwu/magisk/fragments/MagiskLogFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/full/java/com/topjohnwu/magisk/fragments/MagiskLogFragment.java b/app/src/full/java/com/topjohnwu/magisk/fragments/MagiskLogFragment.java index 38f7275cd..9c3ae977f 100644 --- a/app/src/full/java/com/topjohnwu/magisk/fragments/MagiskLogFragment.java +++ b/app/src/full/java/com/topjohnwu/magisk/fragments/MagiskLogFragment.java @@ -78,7 +78,7 @@ public class MagiskLogFragment extends BaseFragment { } private void readLogs() { - Shell.su("cat " + Const.MAGISK_LOG + " | tail -n 5000").submit(result -> { + Shell.su("tail -n 5000 " + Const.MAGISK_LOG).submit(result -> { rv.setAdapter(new MagiskLogAdapter(result.getOut())); }); }