FIx whitespace handling when invoking Python#245
FIx whitespace handling when invoking Python#245pierotofy merged 4 commits intoOpenDroneMap:masterfrom
Conversation
Avoid shell entirely on *nixes
|
Handling the spaces in the ODM path looks 👍 thanks. What's the advantage for not using shell on Unix? |
|
It's just not needed on Unix, and wasn't used before my previous PR. By not using it when not needed, it makes it more efficient and avoids shell injections. On Windows, newer versions of node require the use of |
|
Ok, so mostly to avoid shell injections, but the config.odm_path parameter should be trusted. |
|
We still need the quotation marks. When using I can update the commit to always quote the project/script path. |
This reverts commit c244f07.
|
Good point; I've made the changes, thanks for the PR! 🙏 |
|
The script path has to be escaped too |
When using the shell, we need to quote our arguments! Also we only need the shell on Windows, so avoid using it on *nixes.