Backend: fix devicecheck now that we can't abuse file_getprop with .*

This commit is contained in:
osm0sis committed 2021-12-11 00:15:34 -04:00
1 parent 12baa2739a
commit 1edb7e9f39
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -272,7 +272,7 @@ do_devicecheck() {
product=$(getprop ro.build.product 2>/dev/null);
vendordevice=$(getprop ro.product.vendor.device 2>/dev/null);
vendorproduct=$(getprop ro.vendor.product.device 2>/dev/null);
for testname in $(file_getprop anykernel.sh 'device.name.*'); do
for testname in $($BB grep '^device.name.*=' anykernel.sh | $BB cut -d= -f2-); do
for devicename in $device $product $vendordevice $vendorproduct; do
if [ "$devicename" == "$testname" ]; then
ui_print "$testname" " ";