summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2012-10-10 14:13:16 -0700
committerJean-Baptiste Queru <jbq@google.com>2012-10-10 14:13:16 -0700
commit0a793bd9730722fd79fe34a939bae1e9fc1bc1af (patch)
tree6bd2197ea56f17277f05a40a0acc535869ca46ff
parent4d75d98f274b7a71186e1e10f05b0e126652961a (diff)
downloaddevice_common-0a793bd9730722fd79fe34a939bae1e9fc1bc1af.zip
device_common-0a793bd9730722fd79fe34a939bae1e9fc1bc1af.tar.gz
device_common-0a793bd9730722fd79fe34a939bae1e9fc1bc1af.tar.bz2
Properly filter paths to locate device directories
A device name matches when there are exactly two slashes, and the original cod was looking for at least two slashes. Bug: 4295425 Change-Id: Id2591a2e7b9e68dcec51cb1e33f41d2b314df98f
-rwxr-xr-xgenerate-blob-lists.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/generate-blob-lists.sh b/generate-blob-lists.sh
index 6560539..eebc083 100755
--- a/generate-blob-lists.sh
+++ b/generate-blob-lists.sh
@@ -83,7 +83,7 @@ fi
for DEVICENAME in $DEVICES
do
- MANUFACTURERNAME=$( find device -type d | grep [^/]\*/[^/]\*/$DEVICENAME\$ | cut -f 2 -d / )
+ MANUFACTURERNAME=$( find device -type d | grep ^[^/]\*/[^/]\*/$DEVICENAME\$ | cut -f 2 -d / )
if test $(wc -l < $ARCHIVEDIR/$DEVICENAME-without.txt) != 0 -a $(wc -l < $ARCHIVEDIR/$DEVICENAME-with.txt) != 0
then
(