File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,9 @@ def compile(cli):
32
32
If a keyboard and keymap are provided this command will build a firmware based on that.
33
33
"""
34
34
if cli .args .clean and not cli .args .filename and not cli .args .dry_run :
35
- command = create_make_command (cli .config .compile .keyboard , cli .config .compile .keymap , 'clean' )
36
- cli .run (command , capture_output = False , stdin = DEVNULL )
35
+ if cli .config .compile .keyboard and cli .config .compile .keymap :
36
+ command = create_make_command (cli .config .compile .keyboard , cli .config .compile .keymap , 'clean' )
37
+ cli .run (command , capture_output = False , stdin = DEVNULL )
37
38
38
39
# Build the environment vars
39
40
envs = {}
Original file line number Diff line number Diff line change @@ -59,8 +59,9 @@ def flash(cli):
59
59
If bootloader is omitted the make system will use the configured bootloader for that keyboard.
60
60
"""
61
61
if cli .args .clean and not cli .args .filename and not cli .args .dry_run :
62
- command = create_make_command (cli .config .flash .keyboard , cli .config .flash .keymap , 'clean' )
63
- cli .run (command , capture_output = False , stdin = DEVNULL )
62
+ if cli .config .flash .keyboard and cli .config .flash .keymap :
63
+ command = create_make_command (cli .config .flash .keyboard , cli .config .flash .keymap , 'clean' )
64
+ cli .run (command , capture_output = False , stdin = DEVNULL )
64
65
65
66
# Build the environment vars
66
67
envs = {}
You can’t perform that action at this time.
0 commit comments