From 15d6a12894dd88099e90ffb80a138970a597542b Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Tue, 17 Apr 2007 09:22:56 +0000 Subject: [PATCH] broken list fix --- helm/software/matita/scripts/crontab.sh | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/helm/software/matita/scripts/crontab.sh b/helm/software/matita/scripts/crontab.sh index f2a0283c0..173532c61 100644 --- a/helm/software/matita/scripts/crontab.sh +++ b/helm/software/matita/scripts/crontab.sh @@ -84,21 +84,32 @@ CUR_FAIL=`printf "$SQLQFAILCOUNT" "$MARK" | $MYSQL | tail -n 1` OLD_FAIL=`printf "$SQLQFAILCOUNT" "$LASTMARK" | $MYSQL | tail -n 1` if [ "$CUR_FAIL" -gt "$OLD_FAIL" ]; then + TMP1=`mktemp` + TMP2=`mktemp` + TMP3=`mktemp` + printf "$SQLQFAIL" "$MARK" | $MYSQL > $TMP1 + printf "$SQLQFAIL" "$LASTMARK" | $MYSQL > $TMP2 + combine $TMP1 not $TMP2 > $TMP3 + cat <