X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Fscripts%2Fcrontab.sh;h=ee7c181dbd1e0be73f11f4bbad039b6fdedc7bec;hb=4167cea65ca58897d1a3dbb81ff95de5074700cc;hp=84dc6a9abd5e34b845e98fb725863cba7bd25d63;hpb=90726a9d315302213f1b0fae9e11a194a758a6e8;p=helm.git diff --git a/helm/matita/scripts/crontab.sh b/helm/matita/scripts/crontab.sh index 84dc6a9ab..ee7c181db 100644 --- a/helm/matita/scripts/crontab.sh +++ b/helm/matita/scripts/crontab.sh @@ -1,6 +1,6 @@ #!/bin/bash -TODAY=`date +%Y%m%d0200` -YESTERDAY=`date -d yesterday +%Y%m%d0200` +TODAY=`date +%Y%m%d` +YESTERDAY=`date -d yesterday +%Y%m%d` TMPDIRNAME=.__${TODAY}_crontab CVSROOT=":ext:$USER@marcello.cs.unibo.it:/home/faculty/PROJECTS/cvs/helm" SHELLTIME2CENTSPHP=helm/matita/scripts/shell_time2cents.php @@ -18,12 +18,12 @@ MARK=`echo "select distinct mark from bench where mark like '$TODAY%' order by m LASTMARK=`echo "select distinct mark from bench where mark like '$YESTERDAY%' order by mark" | mysql -u helm matita | tail -n 1` if [ -z "$MARK" ]; then - echo "No benchmark records for $MARK" + echo "No benchmark records for $TODAY" exit 1 fi if [ -z "$LASTMARK" ]; then - echo "No benchmark records for $LASTMARK" + echo "No benchmark records for $YESTERDAY" exit 1 fi