Closed Fizzadar closed 6 months ago
A clear and concise description of what the bug is.
When ending a line replacement with 2>&1 the line is not replaced properly and a broken line, growing each deploy, is instead. Repro below.
2>&1
Steps to reproduce the behavior, please include where possible:
files.line( name="Ensure step cron", path="/usr/lib/cron/tabs/root", line="/usr/local/bin/step", replace="0 * * * * /usr/local/bin/step ca renew --root ca.crt --ca-url https://ca.com mtls.crt mtls.key >> /tmp/step-renew.log 2&>1", )
A clear and concise description of what you expected to happen.
Replace the line properly
Fixed in https://github.com/pyinfra-dev/pyinfra/commit/d1092ad63b5c1659a9cfc1e224c9b6ce3a311ae7
Describe the bug
A clear and concise description of what the bug is.
When ending a line replacement with
2>&1
the line is not replaced properly and a broken line, growing each deploy, is instead. Repro below.To Reproduce
Steps to reproduce the behavior, please include where possible:
Expected behavior
A clear and concise description of what you expected to happen.
Replace the line properly