From 0a793bd9730722fd79fe34a939bae1e9fc1bc1af Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Queru Date: Wed, 10 Oct 2012 14:13:16 -0700 Subject: 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 --- generate-blob-lists.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ( -- cgit v1.1