line 381: syntax error: bad for loop variable
Opened this issue · 2 comments
M4rc3lv commented
On LibreElec always gives this error:
./kodi-cli: line 381: syntax error: bad for loop variable
WPettersson commented
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
WPettersson commented
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.