From 30aae6298bb9f31a172dbc36817965bc415519b8 Mon Sep 17 00:00:00 2001 From: Erovia Date: Sun, 9 May 2021 19:19:42 +0200 Subject: CLI: Use BASH if SHELL variable is not set (Windows) (#12847) --- lib/python/qmk/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/python') 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) -- cgit v1.2.3