Add NinjaAndShellEscapeIncludingSpaces

Bug: 235333302

Test: m droid dist
Change-Id: Ic52fbdb64042148d851403b4afd2dd5392282f77
This commit is contained in:
Bob Badour 2022-06-21 11:10:16 -07:00
parent eb641de659
commit 2a62643266

View file

@ -122,4 +122,8 @@ func NinjaAndShellEscape(s string) string {
return ShellEscape(NinjaEscape(s)) return ShellEscape(NinjaEscape(s))
} }
func NinjaAndShellEscapeIncludingSpaces(s string) string {
return ShellEscapeIncludingSpaces(NinjaEscape(s))
}
var singleQuoteReplacer = strings.NewReplacer(`'`, `'\''`) var singleQuoteReplacer = strings.NewReplacer(`'`, `'\''`)