narke / gcc-cross-compiler

A script to cross-compile GCC toolchain for various target architectures.
BSD 3-Clause "New" or "Revised" License
51 stars 11 forks source link

Check return value of subprocess commands for better output #2

Closed CameronLonsdale closed 6 years ago

CameronLonsdale commented 6 years ago

When the subprocess commands fail the error is displayed to stdout, however, the python code continues to run and you get a success message, when it really did fail to install. It would be nice to catch these errors and halt the tool.

narke commented 6 years ago

I added some checks, I hope it satisfies you.