Add NinjaAndShellEscapeIncludingSpaces

Bug: 235333302
Bug: 240342946

Test: m droid dist

Change-Id: Ic52fbdb64042148d851403b4afd2dd5392282f77
Merged-in: Ic52fbdb64042148d851403b4afd2dd5392282f77
This commit is contained in:
Bob Badour 2022-06-21 11:10:16 -07:00
parent bb076fdcc3
commit 7968c52625

View file

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