summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChirayu Desai <cdesai@cyanogenmod.org>2013-05-19 19:54:32 +0530
committerGerrit Code Review <gerrit@cyanogenmod.org>2013-07-03 12:24:30 -0700
commit0ca7b3420da4da62eae4ebc2d247d36ecf9d20a4 (patch)
tree3912327db3d472b55493e66b754804f6fee58802
parent294ab115b287d31eb4c45ad1515be2d1158c8d4d (diff)
downloadbuild-0ca7b3420da4da62eae4ebc2d247d36ecf9d20a4.zip
build-0ca7b3420da4da62eae4ebc2d247d36ecf9d20a4.tar.gz
build-0ca7b3420da4da62eae4ebc2d247d36ecf9d20a4.tar.bz2
dopush: push files to /data too
Change-Id: I85e24575a04955ae17b978f038edc46e1e6bfa2c
-rw-r--r--envsetup.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/envsetup.sh b/envsetup.sh
index 07c481d..3c26036 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -1810,8 +1810,9 @@ function dopush()
# Get target file name (i.e. system/bin/adb)
TARGET=$(echo $FILE | sed "s#$OUT/##")
- # Don't send files that are not in /system.
- if ! echo $TARGET | egrep '^system\/' > /dev/null ; then
+ # Don't send files that are not under /system or /data
+ if [ ! "echo $TARGET | egrep '^system\/' > /dev/null" -o \
+ "echo $TARGET | egrep '^data\/' > /dev/null" ] ; then
continue
else
case $TARGET in