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.
This commit is contained in:
Tigran Aivazian
2012-11-05 11:39:58 +00:00
committed by Qingping Hou
parent 42a4c8042b
commit 0251a00cce

View File

@@ -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