Don't use "echo -e" when creating prop file

We don't need to escape backslashes when generating the prop file. In
addition, the "-e" option doesn't seem to be supported in some build
environments.

Bug: 178443594
Test: watch presubmit tests
Change-Id: I167b25255a68b62a75b433f31c5e7c9d57f2579d
This commit is contained in:
Jiyong Park 2021-01-26 14:08:16 +09:00
parent f17b07fc52
commit 3db465ddd7
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ func (f *filesystem) buildPropFile(ctx android.ModuleContext) (propFile android.
builder.Command().Text("rm").Flag("-rf").Output(propFile)
for _, p := range props {
builder.Command().
Text("echo").Flag("-e").
Text("echo").
Flag(`"` + p.name + "=" + p.value + `"`).
Text(">>").Output(propFile)
}