lichess-org / external-engine

Using engines running outside of the browser on https://lichess.org/analysis
GNU General Public License v3.0
76 stars 22 forks source link

Fix expression in script #4

Closed vondele closed 2 years ago

vondele commented 2 years ago

thanks for working on the external engine functionality. I believe this will be a great feature.

Testing the current setup, I found this error message

$ ./stockfish quit
./stockfish: 10: [[: not found
Stockfish 15 by the Stockfish developers (see AUTHORS file)

which probably is kind of syntax error. I fixed it locally as shown here, tests fine (and finds the right arch).

$ ./stockfish quit
Stockfish 15 by the Stockfish developers (see AUTHORS file)

I'm not sure this is the cleanest solution, however.

niklasf commented 2 years ago

Thanks! Looks like this was using a bash feature, which doesn't work if #!/bin/sh is not bash.