# use teeboth Perl wrapper
# temporary option to disable if broken
-USE_TEEBOTH=yes
+USE_TEEBOTH=no
LOGDIR=""
LOGDIROK=""
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