diff options
Diffstat (limited to 'lib/python/qmk/cli/new/keymap.py')
-rwxr-xr-x | lib/python/qmk/cli/new/keymap.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/qmk/cli/new/keymap.py b/lib/python/qmk/cli/new/keymap.py index 474fe7974..52c564997 100755 --- a/lib/python/qmk/cli/new/keymap.py +++ b/lib/python/qmk/cli/new/keymap.py | |||
@@ -29,15 +29,15 @@ def new_keymap(cli): | |||
29 | # check directories | 29 | # check directories |
30 | if not kb_path.exists(): | 30 | if not kb_path.exists(): |
31 | cli.log.error('Keyboard %s does not exist!', kb_path) | 31 | cli.log.error('Keyboard %s does not exist!', kb_path) |
32 | exit(1) | 32 | return False |
33 | 33 | ||
34 | if not keymap_path_default.exists(): | 34 | if not keymap_path_default.exists(): |
35 | cli.log.error('Keyboard default %s does not exist!', keymap_path_default) | 35 | cli.log.error('Keyboard default %s does not exist!', keymap_path_default) |
36 | exit(1) | 36 | return False |
37 | 37 | ||
38 | if keymap_path_new.exists(): | 38 | if keymap_path_new.exists(): |
39 | cli.log.error('Keymap %s already exists!', keymap_path_new) | 39 | cli.log.error('Keymap %s already exists!', keymap_path_new) |
40 | exit(1) | 40 | return False |
41 | 41 | ||
42 | # create user directory with default keymap files | 42 | # create user directory with default keymap files |
43 | shutil.copytree(keymap_path_default, keymap_path_new, symlinks=True) | 43 | shutil.copytree(keymap_path_default, keymap_path_new, symlinks=True) |