Changeset 12831


Ignore:
Timestamp:
07/30/12 18:07:10 (13 years ago)
Author:
Mathieu Morlighem
Message:

Display table only if installation worked

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/scripts/report.sh

    r12769 r12831  
    4949BODY_FONTL=`echo $BODY_FONT | sed -e "s/style=\"/style=\"text-align:left; /g"`
    5050
    51 #create some variables
    52 if [ $(ls -1 $ISSM_DIR/bin | wc -l) -le 20 ];
    53 then
     51#Did installation work?
     52if [ $(ls -1 $ISSM_DIR/bin | wc -l) -le 20 ]; then
    5453        IS_INSTALL=0
    5554else
     
    5756fi
    5857
     58#display table ONLY if installation worked and there has been at leat one FAILURE or ERROR
    5959IS_TABLE=0
    60 if [ $NUM_TOT -gt 1 ];
    61 then
    62         if [ $NUM_SUC -ne $NUM_TOT  ];
    63         then
    64                 IS_TABLE=1
     60if [ $IS_INSTALL -eq 1 ]; then
     61        if [ $NUM_TOT -gt 1 ]; then
     62                if [ $NUM_SUC -ne $NUM_TOT  ]; then
     63                        IS_TABLE=1
     64                fi
    6565        fi
    6666fi
Note: See TracChangeset for help on using the changeset viewer.