mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
zulip_tools.run: Remove shell=True support.
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
committed by
Tim Abbott
parent
d581ad82ca
commit
ed0292629b
@@ -174,10 +174,6 @@ def run(args, **kwargs):
|
||||
# Output what we're doing in the `set -x` style
|
||||
print("+ %s" % (" ".join(map(shlex.quote, args)),))
|
||||
|
||||
if kwargs.get('shell'):
|
||||
# With shell=True we can only pass string to Popen
|
||||
args = " ".join(args)
|
||||
|
||||
try:
|
||||
subprocess.check_call(args, **kwargs)
|
||||
except subprocess.CalledProcessError:
|
||||
|
||||
Reference in New Issue
Block a user