propagate error code along the pipes for the coloring wrapper

This commit is contained in:
Johann Dreo 2013-07-11 10:47:11 +02:00
commit cb690a6e3f

View file

@ -161,6 +161,7 @@ alias ipy='ipython -pylab -p scipy --editor="gvim"'
# usage: cm ./build_script # usage: cm ./build_script
function cm() function cm()
{ {
set -o pipefail
$@ 2>&1 | colout -t cmake | colout -t g++ $@ 2>&1 | colout -t cmake | colout -t g++
} }