Browse Source

[Bugfix] `qmk {compile, flash}` return code (#22639)

Pablo Martínez 2 years ago
parent
commit
9c93f36034
2 changed files with 2 additions and 2 deletions
  1. 1 1
      lib/python/qmk/cli/compile.py
  2. 1 1
      lib/python/qmk/cli/flash.py

+ 1 - 1
lib/python/qmk/cli/compile.py

@@ -80,4 +80,4 @@ def compile(cli):
         return False
 
     target.configure(parallel=cli.config.compile.parallel, clean=cli.args.clean, compiledb=cli.args.compiledb)
-    target.compile(cli.args.target, dry_run=cli.args.dry_run, **envs)
+    return target.compile(cli.args.target, dry_run=cli.args.dry_run, **envs)

+ 1 - 1
lib/python/qmk/cli/flash.py

@@ -113,4 +113,4 @@ def flash(cli):
         return False
 
     target.configure(parallel=cli.config.flash.parallel, clean=cli.args.clean)
-    target.compile(cli.args.bootloader, dry_run=cli.args.dry_run, **envs)
+    return target.compile(cli.args.bootloader, dry_run=cli.args.dry_run, **envs)