metwork-framework / jinja2_shell_extension

a jinja2 extension to add a filter to execute system/shell commands
BSD 3-Clause "New" or "Revised" License
3 stars 3 forks source link

Windows compatibility #13

Open Era-Dorta opened 15 hours ago

Era-Dorta commented 15 hours ago

The shell commands always fail to execute on windows due to adding the ; exit 0 to the command in this line https://github.com/metwork-framework/jinja2_shell_extension/blob/master/jinja2_shell_extension/__init__.py#L16

thebaptiste commented 12 hours ago

To replace ; exit 0 by || exit 0 would be ok for Windows (and Linux by the way) I think ?