scripts/COPY: don't use check_call

subprocess.check_call() raises an execption and produces an ugly Python
traceback on the console.  It's not really needed.  The cp command and
Makefile already give error output.  Instead we call sys.exit() with the
exit status of the cp command.
This commit is contained in:
Albert Hopkins 2018-12-02 11:53:35 -08:00
parent 23dcf91c29
commit 3eece1b6ed
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ def main():
command = ["cp"] + sys.argv[1:-1] + [chroot_target] command = ["cp"] + sys.argv[1:-1] + [chroot_target]
subprocess.check_call(command) sys.exit(subprocess.call(command))
if __name__ == "__main__": if __name__ == "__main__":