hidl-gen: Match exact string in hidl-gen before skipping.

- Grep leads to a substring match and causes package
  names to get skipped incorrectly. Use -w option to
  find the exact match.

CRs-Fixed: 2479486
Change-Id: Ic1fbe72304177d396eab142eaf832b841b61da24
This commit is contained in:
Dileep Marchya 2019-06-26 20:42:17 +05:30
parent fa2ff5f820
commit 50d8188bc0
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ function generate_make_files() {
hal_package=${hal_package%?}
#Check if we already executed hidl-gen for a given package
if ${ECHO} "${package_collection[@]}" | ${GREP} $hal_package > /dev/null; then
if ${ECHO} "${package_collection[@]}" | ${GREP} -w $hal_package > /dev/null; then
continue;
else
package_collection+=($hal_package)