forked from Mirror/pmbootstrap
pmb.flasher.vars: do not assume that args.no_reboot and args.resume are defined (MR 2232)
When running pmbootstrap install --android-recovery-zip it tries to access pmb.flasher.variables but args.no_reboot and args.resume are only defined when running pmbootstap flasher.
This commit is contained in:
parent
13f277a56c
commit
cc50d8956b
1 changed files with 2 additions and 2 deletions
|
@ -63,11 +63,11 @@ def variables(args, flavor, method):
|
|||
_dtb = "-dtb"
|
||||
|
||||
_no_reboot = ""
|
||||
if args.no_reboot:
|
||||
if hasattr(args,'no_reboot') and args.no_reboot:
|
||||
_no_reboot = "--no-reboot"
|
||||
|
||||
_resume = ""
|
||||
if args.resume:
|
||||
if hasattr(args,'resume') and args.resume:
|
||||
_resume = "--resume"
|
||||
|
||||
vars = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue