mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-11-14 10:39:05 +00:00
[tools.darkcult] fix result check in break/continue mode
This commit is contained in:
parent
e56429ad0a
commit
04f61170a7
2 changed files with 4 additions and 3 deletions
|
@ -26,7 +26,8 @@ def continue_build(command):
|
||||||
sys.stdout.write(".")
|
sys.stdout.write(".")
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
result = subprocess.call(command[0], shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
|
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
|
return result
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
@ -116,5 +117,5 @@ def main():
|
||||||
]
|
]
|
||||||
))
|
))
|
||||||
|
|
||||||
if __name__=="__main__":
|
if __name__ == "__main__":
|
||||||
sys.exit(main())
|
sys.exit(main())
|
||||||
|
|
|
@ -57,5 +57,5 @@ def main():
|
||||||
]
|
]
|
||||||
))
|
))
|
||||||
|
|
||||||
if __name__=="__main__":
|
if __name__ == "__main__":
|
||||||
sys.exit(main())
|
sys.exit(main())
|
||||||
|
|
Loading…
Reference in a new issue