From aae8faabf0d26548f21bf65925cea85ac6bee13c Mon Sep 17 00:00:00 2001 From: AkinaAcct <108107785+AkinaAcct@users.noreply.github.com> Date: Sun, 1 Sep 2024 08:26:28 +0800 Subject: [PATCH] fix a bug --- py/AAP.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py/AAP.py b/py/AAP.py index 98480cc..74b985b 100644 --- a/py/AAP.py +++ b/py/AAP.py @@ -222,9 +222,9 @@ def main(): if args.ota: logger.info(f"Will install patched boot image to another slot: {Tslot}") flash_img(f"{wdir}/patched_boot.img", f"{BootParentDir}/boot{Tslot}") - else: - logger.fatal("No root detected! Flashing aborted.") - quit("") + elif args.install or args.ota: + logger.fatal("No root detected! You can's use these two args(--ota, --install)! Flashing aborted.") + quit() get_tool() patch_boot(IMAGEPATH)