SharpeRAD / Cake.Powershell

Powershell addin for Cake
http://cakebuild.net
MIT License
83 stars 36 forks source link

Add extra brace escaping to logging logic #8

Closed agc93 closed 7 years ago

agc93 commented 7 years ago

As discussed, resolves #7

I refactored that line out into a common method to make it clearer, hope you don't mind.


Using cake.exe's built-in log, it actually results in log output like the following:

Executing: Invoke-Command -ScriptBlock {{ c:\TEMP\test.ps1 -name name -password test }}

but from what I can tell with the default logger, there is no way to output only a single brace, so this is safer, and won't break string.Format-based loggers either :)