1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2024-11-12 21:09:01 +00:00

[tools.darkcult] fix result check in break/continue mode

This commit is contained in:
bolero-MURAKAMI 2013-09-30 09:36:56 +09:00
parent e56429ad0a
commit 04f61170a7
2 changed files with 4 additions and 3 deletions

View file

@ -26,7 +26,8 @@ def continue_build(command):
sys.stdout.write(".")
sys.stdout.flush()
result = subprocess.call(command[0], shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
logging.critical(command[1])
if not result:
logging.critical(command[1])
return result
def main():
@ -116,5 +117,5 @@ def main():
]
))
if __name__=="__main__":
if __name__ == "__main__":
sys.exit(main())

View file

@ -57,5 +57,5 @@ def main():
]
))
if __name__=="__main__":
if __name__ == "__main__":
sys.exit(main())