WPettersson/kodi-cli

line 381: syntax error: bad for loop variable

Opened this issue · 2 comments

On LibreElec always gives this error:
./kodi-cli: line 381: syntax error: bad for loop variable

Do you mean you are running kodi-cli on LibreElec, or on a different PC connecting to LibreElec? It might be a busybox thing, I'll try to investigate

Okay, I can get this error on line 376 if I try to run this via busybox sh, which explains why the error happens. I don't know an easy fix though, this comes down to ash (which is what busybox sh actually is) not supporting arrays (and possibly other things), and trying to make kodi-cli compatible with ash would be an undertaking.