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

master
Erovia 2021-05-09 19:19:42 +02:00 committed by GitHub
parent 6c5e94061c
commit 30aae6298b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)