Makefile: add pickrand
[cmccabe-bin] / comake
diff --git a/comake b/comake
index 6f13e12..f343024 100755 (executable)
--- a/comake
+++ b/comake
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Colors
 _ESC="$(echo -en '\e')"
@@ -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]}