From c2f5b4707d6eaff1f6e7a6302eef805a5351fc4b Mon Sep 17 00:00:00 2001 From: Paul Keith Date: Fri, 5 May 2017 07:39:05 -0500 Subject: [PATCH] setup-makefiles: Remove loop for sed * Use find's built in -exec instead Change-Id: I5d75e3f7a9c0746f387a0bc330d9ebccb33cd9e8 Signed-off-by: Paul Keith --- setup-makefiles.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-makefiles.sh b/setup-makefiles.sh index c02587a..bbe050d 100755 --- a/setup-makefiles.sh +++ b/setup-makefiles.sh @@ -72,4 +72,4 @@ printf '\n%s\n' "\$(call inherit-product, vendor/gapps/common/common-vendor.mk)" # We are done with target write_footers -for f in `find "$MY_DIR" -type f -name Android.mk`; do sed -i s/TARGET_DEVICE/TARGET_ARCH/g $f; done +find "$MY_DIR" -type f -name Android.mk -exec sed -i 's/TARGET_DEVICE/TARGET_ARCH/g' {} \;