From: Michael Tremer Date: Sun, 25 Jan 2009 13:17:34 +0000 (+0100) Subject: Also write error message to log. X-Git-Tag: v3.0-alpha1~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f85db011ec03a15ca196644b0d386882db6e9df;p=ipfire-3.x.git Also write error message to log. --- diff --git a/tools/make-include b/tools/make-include index 8a97cd731..320c7323d 100644 --- a/tools/make-include +++ b/tools/make-include @@ -84,8 +84,10 @@ exiterror() { stdumount dialogerror $* build_spy state error - [ -n "$LOGFILE" ] && \ + if [ -n "$LOGFILE" ]; then + echo "$(date -u '+%b %e %T') ERROR: $*" >> $LOGFILE build_spy log $(tail -n16 $LOGFILE | $BASEDIR/tools/base64) + fi touch $FAILED rm -f $RUNNING 2>/dev/null exit 1