update system2 (#7722)
This commit is contained in:
parent
a7a10f4eaa
commit
7f3775a061
6
build.py
6
build.py
@ -33,9 +33,9 @@ def get_arch() -> str:
|
|||||||
|
|
||||||
|
|
||||||
def system2(cmd):
|
def system2(cmd):
|
||||||
err = os.system(cmd)
|
exit_code = os.system(cmd)
|
||||||
if err != 0:
|
if exit_code != 0:
|
||||||
print(f"Error occurred when executing: {cmd}. Exiting.")
|
sys.stderr.write(f"Error occurred when executing: `{cmd}`. Exiting.\n")
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user