propagate error code along the pipes for the coloring wrapper
This commit is contained in:
parent
710893b37b
commit
cb690a6e3f
1 changed files with 1 additions and 0 deletions
1
.bashrc
1
.bashrc
|
|
@ -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++
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue