diff options
author | Erovia <Erovia@users.noreply.github.com> | 2021-05-09 19:19:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-09 19:19:42 +0200 |
commit | 30aae6298bb9f31a172dbc36817965bc415519b8 (patch) | |
tree | e4aa760fd0b2c1c51eb412b9f3a5728b6c90d4df /lib/python | |
parent | 6c5e94061c05c94a2404d4edcca4882cdfca844e (diff) |
CLI: Use BASH if SHELL variable is not set (Windows) (#12847)
Diffstat (limited to 'lib/python')
-rw-r--r-- | lib/python/qmk/commands.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/qmk/commands.py b/lib/python/qmk/commands.py index 97774001a3..8c3f95ea21 100644 --- a/lib/python/qmk/commands.py +++ b/lib/python/qmk/commands.py @@ -238,6 +238,6 @@ def run(command, *args, **kwargs): safecmd = map(str, command) safecmd = map(shlex.quote, safecmd) safecmd = ' '.join(safecmd) - command = [os.environ['SHELL'], '-c', safecmd] + command = [os.environ.get('SHELL', '/usr/bin/bash'), '-c', safecmd] return subprocess.run(command, *args, **kwargs) |