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) | |
download | qmk_firmware-30aae6298bb9f31a172dbc36817965bc415519b8.tar.gz qmk_firmware-30aae6298bb9f31a172dbc36817965bc415519b8.zip |
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 97774001a..8c3f95ea2 100644 --- a/lib/python/qmk/commands.py +++ b/lib/python/qmk/commands.py | |||
@@ -238,6 +238,6 @@ def run(command, *args, **kwargs): | |||
238 | safecmd = map(str, command) | 238 | safecmd = map(str, command) |
239 | safecmd = map(shlex.quote, safecmd) | 239 | safecmd = map(shlex.quote, safecmd) |
240 | safecmd = ' '.join(safecmd) | 240 | safecmd = ' '.join(safecmd) |
241 | command = [os.environ['SHELL'], '-c', safecmd] | 241 | command = [os.environ.get('SHELL', '/usr/bin/bash'), '-c', safecmd] |
242 | 242 | ||
243 | return subprocess.run(command, *args, **kwargs) | 243 | return subprocess.run(command, *args, **kwargs) |