Open ModeSevenIndustrialSolutions opened 3 days ago
I don't think it's correct to be calling /bin/sh in the endpoint.sh script shebang, and then using [[ and ]] in the script body. Those require non-standard shell functions, so the should either be toggled to bash, or it should be modified to use standard comparison features. I don't think any of the shell code specificallyrequires double brackets, so I think Paul Horton submitted the patch here that introduced this, it was perhaps simply through habit:
Also, we have double negative comparisons and unquoted variables that should also be addressed in the script code.
I will add further information on this ticket and raise a pull request with a potential fix.
Here is the output from the shellcheck linting tool, for example: