Fixed issue with debug command output being used even though debug wasn't specified.
parent
e2dcdcf79b
commit
01140fa1c1
3
build.py
3
build.py
|
@ -148,7 +148,8 @@ def run(command, allow_failure=False, shell=False):
|
|||
out = subprocess.check_output(command, stderr=subprocess.STDOUT, shell=shell)
|
||||
else:
|
||||
out = subprocess.check_output(command.split(), stderr=subprocess.STDOUT)
|
||||
print "[DEBUG] command output: \n{}\n".format(out)
|
||||
if debug:
|
||||
print "[DEBUG] command output: \n{}\n".format(out)
|
||||
except subprocess.CalledProcessError as e:
|
||||
print ""
|
||||
print ""
|
||||
|
|
Loading…
Reference in New Issue