Skip to content

Commit

Permalink
CLI: Use BASH if SHELL variable is not set (Windows) (qmk#12847)
Browse files Browse the repository at this point in the history
  • Loading branch information
Erovia authored May 9, 2021
1 parent 6c5e940 commit 30aae62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/qmk/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 30aae62

Please sign in to comment.