Skip to content

Commit

Permalink
forgot vars, duplicate, underping all around
Browse files Browse the repository at this point in the history
  • Loading branch information
dlenski committed Aug 18, 2017
1 parent ce4e52a commit 5cfb5f7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions motoflash2sh.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ def main():
assert step.tag == 'step'
op = step.get('operation')
if op=='flash':
vars = 'partition', 'filename',
vars = 'operation', 'partition', 'filename',
elif op=='erase':
vars = 'partition',
vars = 'operation', 'partition',
elif op in ('getvar','oem'):
vars = 'operation',
vars = 'operation', 'var'
else:
args.output.write('\n# %02d: skipping unknown operation %r:\n%s\n\n' % (nn, op, commentify(step)))
op = None
Expand All @@ -84,8 +84,5 @@ def main():
print("Wrote shell script with %d fastboot steps to %s" % (len(steps), args.output.name),
file=sys.stderr)

print("Wrote shell script with %d fastboot steps to %s" % (len(steps), args.output.name),
file=sys.stderr)

if __name__=='__main__':
sys.exit( main() )

0 comments on commit 5cfb5f7

Please sign in to comment.