Skip to content

Commit 1cc4054

Browse files
committed
[build-script] Omit "Build Script Analyzer" when SystemExit is caught.
The content of ".build_script_log" file may be debris when `SystemExit` is thrown; e.g. `--help` is passed. Resolves #60567
1 parent f018901 commit 1cc4054

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/build-script

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,8 @@ def main():
718718
if __name__ == "__main__":
719719
try:
720720
exit_code = main()
721+
except SystemExit as e:
722+
os._exit(e.code)
721723
except KeyboardInterrupt:
722724
sys.exit(1)
723725
finally:

0 commit comments

Comments
 (0)