#!/bin/bash TESTS=$(make -f - 2>/dev/null <(ansi2html > $logfilename) ; exitstatus=${PIPESTATUS[0]} ; if [ "0" -eq $exitstatus ] ; then rm $logfilename ; else echo "*** ./$i exit status is $exitstatus" ; echo "*** $logfilename was saved" ; fi ; echo "----------------" ; done