Merge pull request #5649 from mglae/le10_current_crash_log

[le10] kodi.sh: never delete just created crash log
This commit is contained in:
Christian Hewitt 2021-10-25 10:30:09 +04:00 committed by GitHub
commit 9239bee5f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,8 +154,8 @@ if [ $(( ($RET >= 131 && $RET <= 136) || $RET == 139 )) = "1" ] ; then
# Crashed with core dump
print_crash_report
# Cleanup. Keep only youngest 10 reports
rm -f $(ls -1t $CRASHLOG_DIR/kodi_crashlog_*.log | tail -n +11)
# Cleanup. Keep only youngest 10 reports but current in any case
rm -f $(ls -1t $CRASHLOG_DIR/kodi_crashlog_*.log | grep -v "$FILE" | tail -n +10)
# Enable safe mode if a crash loop is detected
detect_crash_loop && activate_safe_mode