fix release script
This commit is contained in:
parent
22ce7c5427
commit
3eae1ba912
1 changed files with 3 additions and 2 deletions
|
@ -55,13 +55,14 @@ def cmd(s):
|
||||||
|
|
||||||
|
|
||||||
def run(s):
|
def run(s):
|
||||||
proc = subprocess.Popen(cmd(s), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, close_fds=True)
|
proc = subprocess.Popen(cmd(s), shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True)
|
||||||
ret = proc.wait()
|
ret = proc.wait()
|
||||||
out = proc.communicate()[0]
|
out, err = proc.communicate()
|
||||||
for line in out.split("\n"):
|
for line in out.split("\n"):
|
||||||
debug(ansi_pinky + line + ansi_reset)
|
debug(ansi_pinky + line + ansi_reset)
|
||||||
debug(ansi_pinky + "Exit code: " + str(ret))
|
debug(ansi_pinky + "Exit code: " + str(ret))
|
||||||
if ret != 0:
|
if ret != 0:
|
||||||
|
print(err)
|
||||||
raise Exception("Command failed!")
|
raise Exception("Command failed!")
|
||||||
return out
|
return out
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue