kodi: fix kodi.sh typo

This commit is contained in:
MilhouseVH 2018-03-07 23:21:15 +00:00
parent 544f25dffd
commit 0eb317550c

View File

@ -58,7 +58,7 @@ detect_crash_loop()
echo "$NOW_TIME" >> $CRASH_HIST
NUM_RESTARTS=$(wc -l $CRASH_HIST | cut -d' ' -f1)
FIRST_RESTART_TIME=$(tail -n $MAX_RESTARTS $CRASH_HIST | head -n 1)
FIRST_RESTART_TIME=$(tail -n $KODI_MAX_RESTARTS $CRASH_HIST | head -n 1)
# kodi restart loop detected? fail this kodi install
if [ $NUM_RESTARTS -ge $KODI_MAX_RESTARTS -a $KODI_MAX_SECONDS -ge $((NOW_TIME - FIRST_RESTART_TIME)) ]; then