comake: return with exit status of make, not sed
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Mon, 4 Oct 2010 21:50:29 +0000 (14:50 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Mon, 4 Oct 2010 21:50:29 +0000 (14:50 -0700)
comake

diff --git a/comake b/comake
index 6f13e12..6d570dd 100755 (executable)
--- a/comake
+++ b/comake
@@ -8,7 +8,8 @@ C_GREEN="${_ESC}[32;01m"
 C_YELLOW="${_ESC}[33;01m"
 C_LIGHTBLUE="${_ESC}[36;01m"
 
-exec make "$@" 2>&1 | sed \
+make "$@" 2>&1 | sed \
         -e "s/\(^make.*\)/${C_LIGHTBLUE}\1${C_NULL}/" \
         -e "s/\(.* [Ee]rror:.*\)/${C_RED}\1${C_NULL}/" \
         -e "s/\(.* [Ww]arning:.*\)/${C_YELLOW}\1${C_NULL}/"
+exit ${PIPESTATUS[0]}