Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45df0bd1 authored by Colin Cross's avatar Colin Cross
Browse files

Fix typo when multiple BootImageProfiles specified

cat needs a redirect to the output file.

Test: m checkbuild
Change-Id: I7f39048a3e0aa85fa7ce826bfb811e4ce5aa3277
parent 3d186813
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -399,7 +399,7 @@ func bootImageProfileRule(ctx android.SingletonContext, info *bootJarsInfo, miss
	var bootImageProfile string
	var bootImageProfile string
	if len(info.global.BootImageProfiles) > 1 {
	if len(info.global.BootImageProfiles) > 1 {
		combinedBootImageProfile := info.dir.Join(ctx, "boot-image-profile.txt")
		combinedBootImageProfile := info.dir.Join(ctx, "boot-image-profile.txt")
		rule.Command().Text("cat").Inputs(info.global.BootImageProfiles).Output(combinedBootImageProfile.String())
		rule.Command().Text("cat").Inputs(info.global.BootImageProfiles).Text(">").Output(combinedBootImageProfile.String())
		bootImageProfile = combinedBootImageProfile.String()
		bootImageProfile = combinedBootImageProfile.String()
	} else {
	} else {
		bootImageProfile = info.global.BootImageProfiles[0]
		bootImageProfile = info.global.BootImageProfiles[0]