Index: trunk/MagicSoft/Mars/datacenter/scripts/dowebplots
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/dowebplots	(revision 7303)
+++ trunk/MagicSoft/Mars/datacenter/scripts/dowebplots	(revision 7304)
@@ -86,8 +86,9 @@
    tabfile=$path/$base-tab
    daterootfile=`date +%Y%m%d -r $rootfile`
+   dategiffile=0
    dategiffile=`date +%Y%m%d -r $tabfile1.gif`
 #   now=`date +%Y%m%d`
    
-   if [ $dategiffile -lt $daterootfile ]
+   if [ "$dategiffile" -lt "$daterootfile" ]
    then 
       continue
@@ -95,5 +96,5 @@
    
    echo "produce plots..."
-   while [ $X -le 50 ]
+   while [ "$X" -le "50" ]
    do 
       echo "$X's step"
