瀏覽代碼

Merge remote-tracking branch 'origin/master' into develop

QMK Bot 4 年之前
父節點
當前提交
2f367bab98
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/python/qmk/commands.py

+ 1 - 1
lib/python/qmk/commands.py

@@ -239,6 +239,6 @@ def run(command, *args, **kwargs):
         safecmd = map(str, command)
         safecmd = map(str, command)
         safecmd = map(shlex.quote, safecmd)
         safecmd = map(shlex.quote, safecmd)
         safecmd = ' '.join(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)
     return subprocess.run(command, *args, **kwargs)