From 0251a00cce18b29666ec0094c0a5c71e21abdaad Mon Sep 17 00:00:00 2001 From: Tigran Aivazian Date: Mon, 5 Nov 2012 11:39:58 +0000 Subject: [PATCH] No need to cat crash.log on crash. One cannot start kpdf.sh from a terminal anyway (try it and you will see that keyboard handling doesn't work), so there is no need to cat the content of crash.log (to a non-existent terminal) if reader.lua fails. --- kpdf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kpdf.sh b/kpdf.sh index 3f5cffc43..a2b09ee4c 100755 --- a/kpdf.sh +++ b/kpdf.sh @@ -22,7 +22,7 @@ fi killall -stop cvm # finally call reader -./reader.lua "$1" 2> /mnt/us/kindlepdfviewer/crash.log || cat /mnt/us/kindlepdfviewer/crash.log +./reader.lua "$1" 2> crash.log # unmount system fonts if grep /mnt/us/kindlepdfviewer/fonts/host /proc/mounts; then