mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-10 18:49:08 +00:00
Return the make exit code for qmk compile and flash (#11402)
This commit is contained in:
parent
2e9d091960
commit
c07543133a
2 changed files with 4 additions and 2 deletions
|
@ -48,7 +48,8 @@ def compile(cli):
|
|||
cli.log.info('Compiling keymap with {fg_cyan}%s', ' '.join(command))
|
||||
if not cli.args.dry_run:
|
||||
cli.echo('\n')
|
||||
subprocess.run(command)
|
||||
compile = subprocess.run(command)
|
||||
return compile.returncode
|
||||
|
||||
else:
|
||||
cli.log.error('You must supply a configurator export, both `--keyboard` and `--keymap`, or be in a directory for a keyboard or keymap.')
|
||||
|
|
|
@ -81,7 +81,8 @@ def flash(cli):
|
|||
cli.log.info('Compiling keymap with {fg_cyan}%s', ' '.join(command))
|
||||
if not cli.args.dry_run:
|
||||
cli.echo('\n')
|
||||
subprocess.run(command)
|
||||
compile = subprocess.run(command)
|
||||
return compile.returncode
|
||||
|
||||
else:
|
||||
cli.log.error('You must supply a configurator export, both `--keyboard` and `--keymap`, or be in a directory for a keyboard or keymap.')
|
||||
|
|
Loading…
Reference in a new issue