vendor/lineage: Fix dopush

* $OUT is now absolute so strip $ANDROID_BUILD_TOP before
  looking for targets to adb push.

Change-Id: If00e58a98484b7b6b2ee6e4ecd00fc3031e1f47b
This commit is contained in:
Sam Mortimer
2019-10-12 02:14:13 -07:00
parent 27180809c5
commit c386595e0c

View File

@@ -883,8 +883,10 @@ EOF
rm -f $OUT/.chkfileperm.sh
fi
RELOUT=$(echo $OUT | sed "s#^${ANDROID_BUILD_TOP}/##")
stop_n_start=false
for TARGET in $(echo $LOC | tr " " "\n" | sed "s#.*$OUT##" | sort | uniq); do
for TARGET in $(echo $LOC | tr " " "\n" | sed "s#.*${RELOUT}##" | sort | uniq); do
# Make sure file is in $OUT/system or $OUT/data
case $TARGET in
/system/*|/data/*)