Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AkinaAcct committed Sep 1, 2024
1 parent e0c062d commit aae8faa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions py/AAP.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit aae8faa

Please sign in to comment.