From 2e04c39b612e9d45bebacf4e382a15d0e166634e Mon Sep 17 00:00:00 2001 From: Pratham Dubey <134331217+prathamdby@users.noreply.github.com> Date: Fri, 15 Mar 2024 15:06:03 +0530 Subject: [PATCH] Issue #27 capitalize the brand variable for the Xiaomi brand --- helpers/rom_vars.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/helpers/rom_vars.sh b/helpers/rom_vars.sh index e624df0..fd39bc9 100755 --- a/helpers/rom_vars.sh +++ b/helpers/rom_vars.sh @@ -74,6 +74,7 @@ for var in "$@"; do BRAND_TEMP=$( cat "$CAT_FILE" | grep "ro.product" | grep "manufacturer=" | sed "s|.*=||g" | head -n 1 ) fi BRAND=$(echo $BRAND_TEMP | tr '[:upper:]' '[:lower:]') + [[ "${BRAND}" == "xiaomi" ]] && BRAND="Xiaomi" if grep -q "ro.vivo.product.release.name" "$CAT_FILE"; then DEVICE=$( cat "$CAT_FILE" | grep "ro.vivo.product.release.name=" | sed "s|.*=||g" | head -n 1 ) elif grep -q "ro.vendor.product.oem=" "$CAT_FILE"; then