Merge remote-tracking branch 'upstream/dev' into dev

This commit is contained in:
2Shirt 2018-12-27 23:48:42 -07:00
commit a5f7a04528
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -490,12 +490,8 @@ def print_log(message='', end='\n', timestamp=True):
end = end))
def run_program(cmd, args=[], check=True, pipe=True, shell=False, **kwargs):
def run_program(cmd, check=True, pipe=True, shell=False, **kwargs):
"""Run program and return a subprocess.CompletedProcess object."""
if args:
# Deprecated so let's raise an exception to find & fix all occurances
print_error('ERROR: Using args is no longer supported.')
raise Exception
cmd = [c for c in cmd if c]
if shell:
cmd = ' '.join(cmd)