From: Marcin Krol Date: Thu, 1 Aug 2013 05:46:14 +0000 (+0000) Subject: - disable color logging, color codes make buildlogs look like crap X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=2454dc8ca1501dfbfb865e9942a53d23541c4c23;p=packages%2Frpm-build-tools.git - disable color logging, color codes make buildlogs look like crap - always overwrite log file, do not append --- diff --git a/builder.sh b/builder.sh index e7e8d34..520f307 100755 --- a/builder.sh +++ b/builder.sh @@ -86,7 +86,7 @@ LOGFILE='' # use teeboth Perl wrapper # temporary option to disable if broken -USE_TEEBOTH=yes +USE_TEEBOTH=no LOGDIR="" LOGDIROK="" @@ -528,7 +528,7 @@ teeboth() { local efile rc logfile=$1; shift if [ "$logfile" ]; then efile=$(tempfile) - { "$@" 2>&1; echo $? > $efile; } | tee -a $logfile + { "$@" 2>&1; echo $? > $efile; } | tee $logfile rc=$(< $efile) rm -f $efile else