mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-28 20:45:24 +00:00
util_functions.sh: Fix syntax error due to missing then
Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
This commit is contained in:
parent
09131aca89
commit
07835a3e0e
@ -375,7 +375,7 @@ find_boot_image() {
|
|||||||
# init_boot is only used with GKI 13+. It is possible that some devices with init_boot
|
# 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.
|
# partition still uses Android 12 GKI, so we need to explicitly detect that scenario.
|
||||||
BOOTIMAGE=$(readlink -f "/dev/block/by-name/init_boot$SLOT")
|
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+
|
# Standard location since AOSP Android 10+
|
||||||
BOOTIMAGE=$(readlink -f "/dev/block/by-name/boot$SLOT")
|
BOOTIMAGE=$(readlink -f "/dev/block/by-name/boot$SLOT")
|
||||||
elif [ -n "$SLOT" ]; then
|
elif [ -n "$SLOT" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user