Return correct result from koreader.sh

This commit is contained in:
Hzj_jie
2016-11-05 13:21:09 -07:00
committed by Qingping Hou
parent b7671e9ae5
commit 8e5f294902

View File

@@ -115,6 +115,7 @@ fi
cat crash.log 2> /dev/null | tail -c 100000000 > crash.log.new
mv -f crash.log.new crash.log
./reader.lua "${args}" >> crash.log 2>&1
RESULT=$?
if [ "${FROM_NICKEL}" = "true" ] ; then
if [ "${FROM_KFMON}" != "true" ] ; then
@@ -139,4 +140,4 @@ else
fi
fi
return 0
return ${RESULT}