util_functions.sh: Fix syntax error due to missing then

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
This commit is contained in:
Andrew Gunnerson 2024-08-05 23:32:34 -04:00 committed by John Wu
parent 09131aca89
commit 07835a3e0e

View File

@ -375,7 +375,7 @@ find_boot_image() {
# init_boot is only used with GKI 13+. It is possible that some devices with init_boot
# partition still uses Android 12 GKI, so we need to explicitly detect that scenario.
BOOTIMAGE=$(readlink -f "/dev/block/by-name/init_boot$SLOT")
elif [ -L "/dev/block/by-name/boot$SLOT" ]
elif [ -L "/dev/block/by-name/boot$SLOT" ]; then
# Standard location since AOSP Android 10+
BOOTIMAGE=$(readlink -f "/dev/block/by-name/boot$SLOT")
elif [ -n "$SLOT" ]; then