deployphp / deployer

The PHP deployment tool with support for popular frameworks out of the box
https://deployer.org
MIT License
10.56k stars 1.48k forks source link

Fix test function #3717

Closed nlemoine closed 11 months ago

nlemoine commented 11 months ago

Prevents line breaks that might be outputed in run return to break condition.

I had a case with WP CLI (using remote SSH features) where the output of run contains a line break that makes the test command fail whereas it shouldn't have.

Basically, instead of getting +accurate, I got \n+accurate which makes the test evaluate to false.

nlemoine commented 11 months ago

Thanks you @antonmedv ! I think runLocally should also be fixed the same way.