Wintermute0110 / plugin.program.AEL.dev

Emulator frontend and app launcher for Kodi
GNU General Public License v2.0
105 stars 36 forks source link

Add capacity to launch shell script on Linux #143

Closed WarsTime closed 3 years ago

WarsTime commented 3 years ago

Currently, if you try to run a script (to run multiple commands for example), you get this : "OSError: [Errno 8] Exec format error". The proposed solution is to launch shell script through the command interpreter : "sh".

Wintermute0110 commented 3 years ago

You can now run a script in Linux, shell or any other interpreter like Python, providing the following conditions are met: 1) the file needs executable permissions according to the user running Kodi, 2) the script file has a shebang marker.

WarsTime commented 3 years ago

Indeed... I don't know why, but last time AEL produced an error when I tried to launch a bash script but now it's OK. Sorry, maybe I tried it with an old version of AEL.