From f122fcff89bd76ac08a9a61ec6995601da09324f Mon Sep 17 00:00:00 2001 From: Andrew Gunnerson Date: Wed, 7 Sep 2022 16:24:23 -0400 Subject: [PATCH] update-binary: Also perform a direct install if /system/bin/recovery exists Fixes: #131 Signed-off-by: Andrew Gunnerson --- app/magisk/update-binary | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/magisk/update-binary b/app/magisk/update-binary index 5c62ccac0..939bfbf84 100644 --- a/app/magisk/update-binary +++ b/app/magisk/update-binary @@ -9,7 +9,7 @@ ui_print() { printf "ui_print %s\nui_print\n" "${*}" > /proc/self/fd/"${OUTFD}" } -if [ -f /sbin/recovery ]; then +if [ -f /sbin/recovery ] || [ -f /system/bin/recovery ]; then # Installing via recovery. Always do a direct install. set -exu @@ -37,4 +37,4 @@ else . /data/adb/magisk/util_functions.sh install_module -fi \ No newline at end of file +fi