소스 검색

CLI: Use BASH if SHELL variable is not set (Windows) (#12847)

Erovia 4 년 전
부모
커밋
30aae6298b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/python/qmk/commands.py

+ 1 - 1
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)