Skip to content

Commit

Permalink
fix(9db9250): move 'odm/etc/build.prop' detection to 'ripgrep'
Browse files Browse the repository at this point in the history
Change-Id: I8b7b48b5754351037b73aa20085b9dd720970621
  • Loading branch information
AntoninoScordino committed Jan 4, 2025
1 parent 0a61cdd commit 3d5caf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extract_and_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ platform=$(rg -m1 -INoP --no-messages "(?<=^ro.board.platform=).*" {vendor,syste
[[ -z ${platform} ]] && platform=$(rg -m1 -INoP --no-messages rg"(?<=^ro.system.board.platform=).*" {system,system/system}/build*.prop)
platform=$(echo "$platform" | head -1)

manufacturer=$(grep -oP "(?<=^ro.product.odm.manufacturer=).*" odm/etc/build*.prop)
manufacturer=$(rg -m1 -INoP --no-messages "(?<=^ro.product.odm.manufacturer=).*" odm/etc/build*.prop)
[[ -z ${manufacturer} ]] && manufacturer=$(rg -m1 -INoP --no-messages "(?<=^ro.product.manufacturer=).*" odm/etc/fingerprint/build.default.prop)
[[ -z ${manufacturer} ]] && manufacturer=$(rg -m1 -INoP --no-messages "(?<=^ro.product.manufacturer=).*" my_product/build*.prop)
[[ -z ${manufacturer} ]] && manufacturer=$(rg -m1 -INoP --no-messages "(?<=^ro.product.manufacturer=).*" my_manifest/build*.prop)
Expand Down

0 comments on commit 3d5caf4

Please sign in to comment.