From 364b5919c4e259476bc701656ba2e01fc715ca6d Mon Sep 17 00:00:00 2001 From: Colin Patrick McCabe Date: Mon, 4 Oct 2010 14:50:29 -0700 Subject: [PATCH] comake: return with exit status of make, not sed --- comake | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/comake b/comake index 6f13e12..6d570dd 100755 --- 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]} -- 1.6.6.rc1.39.g9a42