Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ale5000-git committed Aug 4, 2023
1 parent 8cba97e commit 1815f13
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions zip-content/inc/common-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -533,22 +533,14 @@ initialize()
_find_and_mount_system
cp -pf "${SYS_PATH:?}/build.prop" "${TMP_PATH:?}/build.prop" # Cache the file for faster access

if BUILD_MANUFACTURER="$(simple_getprop 'ro.product.manufacturer')" && is_valid_prop "${BUILD_MANUFACTURER?}"; then
:
else
BUILD_MANUFACTURER=''
fi
BUILD_MANUFACTURER="$(sys_getprop 'ro.product.manufacturer')"
readonly BUILD_MANUFACTURER
export BUILD_MANUFACTURER

if BUILD_DEVICE="$(simple_getprop 'ro.product.device')" && is_valid_prop "${BUILD_DEVICE?}"; then
:
elif BUILD_DEVICE="$(simple_getprop 'ro.build.product')" && is_valid_prop "${BUILD_DEVICE?}"; then
:
elif BUILD_DEVICE="$(simple_file_getprop 'ro.product.device' "${TMP_PATH:?}/build.prop")" && is_valid_prop "${BUILD_DEVICE?}"; then
if BUILD_DEVICE="$(sys_getprop 'ro.product.device')" && is_valid_prop "${BUILD_DEVICE?}"; then
:
else
BUILD_DEVICE=''
BUILD_DEVICE="$(sys_getprop 'ro.build.product')"
fi
readonly BUILD_DEVICE
export BUILD_DEVICE
Expand Down

0 comments on commit 1815f13

Please sign in to comment.