update system2 (#7722)

This commit is contained in:
jxdv 2024-04-14 16:52:27 +00:00 committed by GitHub
parent a7a10f4eaa
commit 7f3775a061
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)