From 5ef680426e745ef5684aec69e5547c2686f9141e Mon Sep 17 00:00:00 2001 From: charansingh Date: Sun, 27 Mar 2011 17:23:20 +0530 Subject: [PATCH] Fix LeoUpdate script so that only one boot folder is present Change-Id: I0124aaaabf4e8583b011e87c9c17de36ba05a979 --- tools/leoupdate | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/leoupdate b/tools/leoupdate index e282e56f..4ed5348b 100755 --- a/tools/leoupdate +++ b/tools/leoupdate @@ -19,8 +19,9 @@ grep -vw boot.img temp > updater-script rm -rf temp echo Zipping Package cd "$LOC"/temp -rm -rf boot.img -cp -a "$LOC"/boot boot +rm -rf "$LOC"/temp/boot.img +rm -rf "$LOC"/temp/boot +cp -a "$LOC"/boot "$LOC"/temp/boot rm -rf "$LOC"/$TARGET_PRODUCT-ota-$TARGET_BUILD_VARIANT.$LOGNAME.zip zip -9yr "$LOC"/$TARGET_PRODUCT-ota-$TARGET_BUILD_VARIANT.$LOGNAME.zip * > /dev/null cd "$LOC"