From 0b9f31fb0834fd84bc4d5e3b99d67e80e6e2224d Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Thu, 28 Feb 2019 11:00:01 -0800 Subject: Replace *Escape with *EscapeList Follow the change to blueprint to make *Escape take and return a string and add *EscapeList that take and return slices of strings. Fix up a few places that were unnecessarily converting a string to a slice and back to a string. Test: m nothing Change-Id: I3fa87de175522205f36544ef76aa2f04aef1b936 --- genrule/genrule.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'genrule') diff --git a/genrule/genrule.go b/genrule/genrule.go index 7695ffbd..47d88c33 100644 --- a/genrule/genrule.go +++ b/genrule/genrule.go @@ -453,7 +453,7 @@ func NewGenSrcs() *Module { } // escape the command in case for example it contains '#', an odd number of '"', etc - command = fmt.Sprintf("bash -c %v", proptools.ShellEscape([]string{command})[0]) + command = fmt.Sprintf("bash -c %v", proptools.ShellEscape(command)) commands = append(commands, command) } fullCommand := strings.Join(commands, " && ") -- cgit v1.2.3