]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Also write error message to log.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 25 Jan 2009 13:17:34 +0000 (14:17 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 25 Jan 2009 13:17:34 +0000 (14:17 +0100)
tools/make-include

index 8a97cd731c490d631287c37ad5249d11ee6e3705..320c7323d2a9500317e53434134b1d36bb3600a4 100644 (file)
@@ -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