diff options
author | Colin Cross <ccross@android.com> | 2019-02-28 11:00:01 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2019-03-04 18:11:53 +0000 |
commit | 0b9f31fb0834fd84bc4d5e3b99d67e80e6e2224d (patch) | |
tree | 822385829aba1ce8d913e4c8d9637cf7320015f7 /genrule | |
parent | 7abf560cb0028bf8413a35f2fa71a4d528b6da67 (diff) | |
download | build_soong-0b9f31fb0834fd84bc4d5e3b99d67e80e6e2224d.tar.gz build_soong-0b9f31fb0834fd84bc4d5e3b99d67e80e6e2224d.tar.bz2 build_soong-0b9f31fb0834fd84bc4d5e3b99d67e80e6e2224d.zip |
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
Diffstat (limited to 'genrule')
-rw-r--r-- | genrule/genrule.go | 2 |
1 files changed, 1 insertions, 1 deletions
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, " && ") |