Cant' enable quick upload/download on Lakka 5.0

Hi there,

I have a Raspberry Pi 4 sitting in my local network which I access via SSH using Core Shell. The Raspi is running Lakka 5.0, a Linux distribution based on LibreELEC. When I try to use Core Shell's Shell > Enable Quick Download and Upload, this is what happens in the terminal window:

Lakka:~ # sh -c "$(curl -fsSL https://raw.githubusercontent.com/codinn/core-shell-scripts/master/install.sh)" && . "$HOME/.shrc_Core_Shell"
bash: /storage/.shrc_Core_Shell: line 20: syntax error: bad for loop variable

The line in question (20 of .shrc_Core_Shell) reads as follows:

for ((i = 0; i < ${#PWD}; ++i)); do

Any ideas what causes this? Is there anything I can do to get this to work?

Hi,

Please use bash or zsh to run the script, change the command to:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/codinn/core-shell-scripts/master/install.sh)" && . "$HOME/.shrc_Core_Shell"

or

zsh -c "$(curl -fsSL https://raw.githubusercontent.com/codinn/core-shell-scripts/master/install.sh)" && . "$HOME/.shrc_Core_Shell"

Kind Regards,

Yang

Hello @yang,

thank you for your suggestions and sorry for not getting back to you earlier. Unfortunately, your solution doesn't work. Using bash to run the script results in the same error message I've posted above. zsh on the other hand is not installed on the machine.