in reply to Re^3: Capture Exit Code Using Pipe & Tee
in thread Capture Exit Code Using Pipe & Tee

the code wasn't actually returning the error code for the make file as far as i could tell.

Correct, because that wasn't the question. The question was about obtaining make's exit code.