summaryrefslogtreecommitdiffstats
path: root/envsetup.sh
diff options
context:
space:
mode:
authorChirayu Desai <cdesai@cyanogenmod.org>2013-05-19 19:54:32 +0530
committerAdnan Begovic <adnan@cyngn.com>2015-10-06 16:12:20 -0700
commit894076f2a89ccb8321c01c70cb48599557005f4e (patch)
treec5848fe1f0640d5bba71937863a601533a23913a /envsetup.sh
parenta5c679664c03dcf05a4808388b9d335f1ea8fc39 (diff)
downloadbuild-894076f2a89ccb8321c01c70cb48599557005f4e.zip
build-894076f2a89ccb8321c01c70cb48599557005f4e.tar.gz
build-894076f2a89ccb8321c01c70cb48599557005f4e.tar.bz2
dopush: push files to /data too
Change-Id: I85e24575a04955ae17b978f038edc46e1e6bfa2c
Diffstat (limited to 'envsetup.sh')
-rw-r--r--envsetup.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/envsetup.sh b/envsetup.sh
index 26b79c8..36ff220 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -2034,8 +2034,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